Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1420

doctrine orm:validate-schema failure when using Migrations

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.1.3
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      Linux, php 5.3.8

      Description

      I'm using Doctrine 2.1.2 with Migrations 2.0. Doctrine cli tool works
      correctly for both schema creation (from annotations) and migrations
      but, after using the tool to validate the schema i get the following
      error:

      [Mapping] OK - The mapping files are correct.
      [Database] FAIL - The database schema is not in sync with the current
      mapping file.

      The failure is caused by the doctrine_migration_versions table that
      the migration project has created in the db of my project.

      orm:validate-schema fails because the relation is not defined as an
      entity in the annotations.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Fixed

        Show
        Benjamin Eberlei added a comment - Fixed

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Denis
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: