Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-7886

Reference in locationlist block attribute migration cases type error

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Customer request, 5.0.x-dev, 4.6.4
    • 4.6.0, 4.5.4
    • None
    • None
    • Yes

    Description

      Steps to reproduce

      1. Install ibexa
      2. Create ibexa migration with a landing page containing a Collection block, with reference in the locationlist attribute. (Migration file attached)
      3. Execute the migration

      Result
      Exception is thrown

      In LocationListBlockAttributeRelationExtractor.php line 59:
                                                                            
        explode(): Argument #2 ($string) must be of type string, int given  
                                                                            
      

      Expected result
      Migration runs without error

      Info
      The error occurs when this part is processed:

      { id: '', name: locationlist, value: 'reference:ref_location__folder__test' }
      

      The \Ibexa\Bundle\Migration\Serializer\Denormalizer\ReferenceResolutionDenormalizer::denormalize converts the reference to int.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              pawel.pawlik@ibexa.co Paweł Pawlik
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: