Basically, the related table is an association table :
VitrineLivre:
actAs: { Timestampable: ~ }
columns:
vitrine_paragraphe_id: { type: integer(4), primary: true }
livre_id: { type: integer(4), primary: true }
relations:
Livre:
type: one
local: livre_id
foreign: id
VitrineParagraphe:
type: one
local: vitrine_paragraphe_id
foreign: id
I doctrine:admin-generate-d the module. I insert one object in my
database (the 'new' form works).
Now, if I want to display the list, Symfony throws an Internal Server
Error (500) :
The "/vitrinelivre/:Array/edit.:sf_format" route has some missing
mandatory parameters (:Array).
The generated route is :
vitrine_livre:
class: sfDoctrineRouteCollection
options:
model: VitrineLivre
module: vitrinelivre
prefix_path: /vitrinelivre
column: Array
with_wildcard_routes: true
The 'column' field must point to a unique column, and that's of course
innapropriate in this case. What should I do to get it work ?
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.