Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-31271

ezmatrix FT on eZ Platform 3.0-beta4 refer to undefined eZ\Publish\Core\Repository\Values\ContentType\ContentType::fieldDefinitionsByIdentifier property

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 2.5.9, 3.0.0-beta5
    • 3.0.0-beta4
    • Field types
    • None

    Description

       In eZ Platform 3.0 beta4 the `\eZ\Publish\Core\Repository\Values\ContentType\ContentType::$fieldDefinitionsByIdentifier` is not longer available (https://github.com/ezsystems/ezpublish-kernel/pull/2839/files#diff-44fda21f8491726bee83781572e6e99bL60-L65) but it's unfortunatly referenced in ezplatform-matrix-fieldtype bundle in 

      • src/bundle/Resources/views/themes/admin/matrix_fieldtype/content_fields.html.twig
      • src/bundle/Resources/views/themes/standard/matrix_fieldtype/content_fields.html.twig

      which cause the following error when trying to render the field value: 

      Neither the property "fieldDefinitionsByIdentifier" nor one of the methods "fieldDefinitionsByIdentifier()", "getfieldDefinitionsByIdentifier()"/"isfieldDefinitionsByIdentifier()"/"hasfieldDefinitionsByIdentifier()" or "__call()" exist and have public access in class "eZ\Publish\Core\Repository\Values\ContentType\ContentType".

      Steps to reproduce

      Create and publish content with ezmatrix field type 

      Expected behavior

      Field is rendered

      Actual behavior

      Exception mentioned above is thrown

      Attachments

        Activity

          People

            Unassigned Unassigned
            adam.wojs@ibexa.co Adam Wójs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: