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

Migration : Creating sections do not save any references

    XMLWordPrintable

Details

    Description

      No references are stored when creating sections:

      # src/Migrations/Ibexa/migrations/2_migration_sections.yaml
      -
       type: section
       mode: create
       metadata:
       identifier: section1
       name: Section1
      -
       type: section
       mode: create
       metadata:
       identifier: section2
       name: Section2
      -
       type: reference
       mode: save
       filename: 'ref_sections.yaml'
      

      How to reproduce :

      php bin/console ibexa:migrations:migrate --file 2_migration_sections.yaml
      
      

      Afterwards, src/Migrations/Ibexa/ref_sections.yaml will be created, but it will be empty.
      Expected content of that file (you might name the references differently though):

      -
       name: 'ref__section_section1'
       value: 10
      
      -
       name: 'ref__section_section2'
       value: 11
      

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              vidar.langseid@ibexa.co Vidar Langseid
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: