Thursday, March 17, 2011

Symfony admin generator: problems with routing and multiple primary keys

Got the solution from: Symfony admin generator: problems with routing and multiple primary keys

You can easily solve this issue by entering a complex rule using the very same primary keys you defined in your schema.yml. Assuming the “myModule” model has two primary keys “myKey1″ and “myKey2″, you can change your route like the following
column: myKey1/:myKey2
here you go: solved!
Thanks bit2bit.it, whoever you are.. ;)

No comments:

Post a Comment