Development

#9233 (Problem with schema.yaml --> schema.sql for many-to-many relation defined on one specific way)

You must first sign up to be able to contribute.

Ticket #9233 (new defect)

Opened 3 years ago

Last modified 3 years ago

Problem with schema.yaml --> schema.sql for many-to-many relation defined on one specific way

Reported by: toni.samardzic Assigned to: fabien
Priority: minor Milestone:
Component: generator Version: 1.4.8
Keywords: Cc:
Qualification: Unreviewed

Description

Hi guys,

I've noticed something very strange, what smells to me as bug. In file schema.yaml you can see on which way I have written many-to-many relation. I've defined two many-to-many relations, first is between Game and Attribute, second is between Game and Genre. Problem is what both many-to-many relation I've configured on same way, but when I've generate schema.sql file I don't have same result. In schema.sql many-to-many table game_attribute has two foreign key constraints, but table has only one.

Please check that.

Big Regards from Croatia, Toni Samardzic

p.s. Ubuntu 10.10, symfony version 1.4.9-DEV (same problem is with 1.4.8), NetBEans IDE 6.9.1

Attachments

schema.yml (1.2 kB) - added by toni.samardzic on 11/09/10 22:35:03.
schema.sql (1.5 kB) - added by toni.samardzic on 11/09/10 22:35:56.

Change History

11/09/10 22:35:03 changed by toni.samardzic

  • attachment schema.yml added.

11/09/10 22:35:56 changed by toni.samardzic

  • attachment schema.sql added.

(in reply to: ↑ description ) 11/09/10 22:49:42 changed by toni.samardzic

Replying to toni.samardzic:

Hi guys, I've noticed something very strange, what smells to me as bug. In file schema.yaml you can see on which way I have written many-to-many relation. I've defined two many-to-many relations, first is between Game and Attribute, second is between Game and Genre. Problem is what both many-to-many relation I've configured on same way, but when I've generate schema.sql file I don't have same result. In schema.sql many-to-many table game_attribute has two foreign key constraints, but table has only one. Please check that. Big Regards from Croatia, Toni Samardzic p.s. Ubuntu 10.10, symfony version 1.4.9-DEV (same problem is with 1.4.8), NetBEans IDE 6.9.1

Used commands: symfony doctrine:clean-model-files symfony doctrine:build-model symfony doctrine:build-sql