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

Fetching non existing type field leads to an error

    XMLWordPrintable

Details

    Description

      $contentTypeHandler->getFieldDefinition(0, Type::STATUS_DEFINED);

      throws an error:

      TypeError: Argument 1 passed to eZ\Publish\Core\Persistence\Legacy\Content\Type\Mapper::extractFieldFromRow() must be of the type array, bool given, called in /Users/sd/Projects/ez/bundles/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Type/Handler.php on line 504

      Instead of throwing 

       \eZ\Publish\Core\Base\Exceptions\NotFoundException

      Attachments

        Activity

          People

            Unassigned Unassigned
            l0rdj l0rdj
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: