Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2429

Association-Override Problem in XSD Mapping?

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      From a mailinglist entry:

      I use Doctrine 2.3 in Symfony 2.1.8

      I'm using association-overrides in the XML format between several entities. Eclipse shows up several errors.

      The first error message is shown in every Doctrine file when I declare the file format as such (for example: https://github.com/thewholelifetolearn/Social-Library/blob/master/src/SocialLibrary/ReadBundle/Resources/config/doctrine/GraphicNovel.orm.xml )

      <?xml version="1.0" encoding="UTF-8"?>
      <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                        http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
      

      Eclipse shows this error :
      White spaces are required between publicId and systemId

      The error points to the "doctrine-mapping" line

      The second error comes up when I change the doctype to (file example: https://gist.github.com/thewholelifetolearn/5462057 ):

      <?xml version="1.0" encoding="UTF-8"?>
      <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                        https://raw.github.com/doctrine/doctrine2/master/doctrine-mapping.xsd">
      

      But then this error is shown:
      cvc-complex-type.2.4.b: The content of element 'association-overrides' is not complete. One of '

      {"http://doctrine-project.org/schemas/orm/doctrine-mapping":association-override, WC[##other:"http://doctrine-project.org/schemas/orm/doctrine-mapping"]}

      ' is expected.

      The error points on "<association-overrides>" in Novel.orm.xml (line 8)

      Could someone explain me the errors that show up? The first error doesn't seem to disturb Symfony2 but the second messes around the console commands. But it still generates the database.

        Activity

        Benjamin Eberlei created issue -
        Fabio B. Silva made changes -
        Field Original Value New Value
        Description From a mailinglist entry:

        I use Doctrine 2.3 in Symfony 2.1.8

        I'm using association-overrides in the XML format between several entities. Eclipse shows up several errors.

        The first error message is shown in every Doctrine file when I declare the file format as such (for example: https://github.com/thewholelifetolearn/Social-Library/blob/master/src/SocialLibrary/ReadBundle/Resources/config/doctrine/GraphicNovel.orm.xml )

        {code}
        <?xml version="1.0" encoding="UTF-8"?>
        <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                          xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                          http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
        {code}

        Eclipse shows this error :
        White spaces are required between publicId and systemId

        The error points to the "doctrine-mapping" line



        The second error comes up when I change the doctype to (file example: https://gist.github.com/thewholelifetolearn/5462057):
        <?xml version="1.0" encoding="UTF-8"?>
        <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                          xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                          https://raw.github.com/doctrine/doctrine2/master/doctrine-mapping.xsd">

        But then this error is shown:
        cvc-complex-type.2.4.b: The content of element 'association-overrides' is not complete. One of '{"http://doctrine-project.org/schemas/orm/doctrine-mapping":association-override, WC[##other:"http://doctrine-project.org/schemas/orm/doctrine-mapping"]}' is expected.

        The error points on "<association-overrides>" in Novel.orm.xml (line 8)


        Could someone explain me the errors that show up? The first error doesn't seem to disturb Symfony2 but the second messes around the console commands. But it still generates the database.
        From a mailinglist entry:

        I use Doctrine 2.3 in Symfony 2.1.8

        I'm using association-overrides in the XML format between several entities. Eclipse shows up several errors.

        The first error message is shown in every Doctrine file when I declare the file format as such (for example: https://github.com/thewholelifetolearn/Social-Library/blob/master/src/SocialLibrary/ReadBundle/Resources/config/doctrine/GraphicNovel.orm.xml )

        {code}
        <?xml version="1.0" encoding="UTF-8"?>
        <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                          xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                          http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
        {code}

        Eclipse shows this error :
        White spaces are required between publicId and systemId

        The error points to the "doctrine-mapping" line



        The second error comes up when I change the doctype to (file example: https://gist.github.com/thewholelifetolearn/5462057 ):
        <?xml version="1.0" encoding="UTF-8"?>
        <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                          xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                          https://raw.github.com/doctrine/doctrine2/master/doctrine-mapping.xsd">

        But then this error is shown:
        cvc-complex-type.2.4.b: The content of element 'association-overrides' is not complete. One of '{"http://doctrine-project.org/schemas/orm/doctrine-mapping":association-override, WC[##other:"http://doctrine-project.org/schemas/orm/doctrine-mapping"]}' is expected.

        The error points on "<association-overrides>" in Novel.orm.xml (line 8)


        Could someone explain me the errors that show up? The first error doesn't seem to disturb Symfony2 but the second messes around the console commands. But it still generates the database.
        Marco Pivetta made changes -
        Description From a mailinglist entry:

        I use Doctrine 2.3 in Symfony 2.1.8

        I'm using association-overrides in the XML format between several entities. Eclipse shows up several errors.

        The first error message is shown in every Doctrine file when I declare the file format as such (for example: https://github.com/thewholelifetolearn/Social-Library/blob/master/src/SocialLibrary/ReadBundle/Resources/config/doctrine/GraphicNovel.orm.xml )

        {code}
        <?xml version="1.0" encoding="UTF-8"?>
        <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                          xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                          http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
        {code}

        Eclipse shows this error :
        White spaces are required between publicId and systemId

        The error points to the "doctrine-mapping" line



        The second error comes up when I change the doctype to (file example: https://gist.github.com/thewholelifetolearn/5462057 ):
        <?xml version="1.0" encoding="UTF-8"?>
        <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                          xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                          https://raw.github.com/doctrine/doctrine2/master/doctrine-mapping.xsd">

        But then this error is shown:
        cvc-complex-type.2.4.b: The content of element 'association-overrides' is not complete. One of '{"http://doctrine-project.org/schemas/orm/doctrine-mapping":association-override, WC[##other:"http://doctrine-project.org/schemas/orm/doctrine-mapping"]}' is expected.

        The error points on "<association-overrides>" in Novel.orm.xml (line 8)


        Could someone explain me the errors that show up? The first error doesn't seem to disturb Symfony2 but the second messes around the console commands. But it still generates the database.
        From a mailinglist entry:

        I use Doctrine 2.3 in Symfony 2.1.8

        I'm using association-overrides in the XML format between several entities. Eclipse shows up several errors.

        The first error message is shown in every Doctrine file when I declare the file format as such (for example: https://github.com/thewholelifetolearn/Social-Library/blob/master/src/SocialLibrary/ReadBundle/Resources/config/doctrine/GraphicNovel.orm.xml )

        {code}
        <?xml version="1.0" encoding="UTF-8"?>
        <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                          xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                          http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
        {code}

        Eclipse shows this error :
        White spaces are required between publicId and systemId

        The error points to the "doctrine-mapping" line



        The second error comes up when I change the doctype to (file example: https://gist.github.com/thewholelifetolearn/5462057 ):
        {code}
        <?xml version="1.0" encoding="UTF-8"?>
        <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                          xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                          https://raw.github.com/doctrine/doctrine2/master/doctrine-mapping.xsd">
        {code}

        But then this error is shown:
        cvc-complex-type.2.4.b: The content of element 'association-overrides' is not complete. One of '{"http://doctrine-project.org/schemas/orm/doctrine-mapping":association-override, WC[##other:"http://doctrine-project.org/schemas/orm/doctrine-mapping"]}' is expected.

        The error points on "<association-overrides>" in Novel.orm.xml (line 8)


        Could someone explain me the errors that show up? The first error doesn't seem to disturb Symfony2 but the second messes around the console commands. But it still generates the database.
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.4 [ 10321 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Fabio B. Silva
            Reporter:
            Benjamin Eberlei
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: