Doctrine 1
  1. Doctrine 1
  2. DC-367

generate-models-db doesn't fetch cascade delete constraint

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Invalid
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: Cli
    • Labels:
      None
    • Environment:
      Windows / PostgreSQL

      Description

      Running
      doctrine-cli.php generate-models-db

      everything works fine, I get in setUp() all the relations, by the way no one of them has the 'cascade' => array('delete') option, even if I setup all the constraints correctly.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        however, this information cant be detected on mysql 5.0 versions and came in late in other versions.

        Show
        Benjamin Eberlei added a comment - however, this information cant be detected on mysql 5.0 versions and came in late in other versions.
        Hide
        Francesco Montefoschi added a comment -

        Why can't this be detected on mysql 5?

        Show
        Francesco Montefoschi added a comment - Why can't this be detected on mysql 5?
        Hide
        Jonathan H. Wage added a comment -

        I just tested this with the most recent mysql 5 version and it works as expected.

        Show
        Jonathan H. Wage added a comment - I just tested this with the most recent mysql 5 version and it works as expected.
        Hide
        Francesco Montefoschi added a comment -

        By the way, I reported this bug against Postgres

        Show
        Francesco Montefoschi added a comment - By the way, I reported this bug against Postgres

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Francesco Montefoschi
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: