Hi all,
I'm currently working with a Many to Many doctrine relation, and I
generated a backend interface for it.
However, the selectbox with the correct possible values are visible,
but when I select some and I save them, the foreign key doesn't save.
Even stranger is that when I put in some values in the database
directly, it doesn't select them.
this is my doctrine schema:
product:
columns:
product_id:
type: integer(3)
primary: true
autoincrement: true
notnull: true
categorie_id: integer(3)
naam: string(45)
relations:
categorie:
local: categorie_id
foreign: categorie_id
foreignAlias: producten
cascade: [delete]
toebehoren:
local: product_id
foreign: product_id
foreignAlias: producten
class: toebehoren
refClass: productToebehoren
#attributes:
# export: all
# validate: true
productToebehoren:
columns:
toebehoren_id:
type: integer(3)
primary: true
notnull: true
product_id:
type: integer(3)
primary: true
notnull: true
relations:
product:
local: product_id
foreign: product_id
foreignAlias: toebehorens
toebehoren:
local: toebehoren_id
foreign: toebehoren_id
foreignAlias: toebehorens
toebehoren:
columns:
toebehoren_id:
type: integer(3)
primary: true
autoincrement: true
notnull: true
toebehorentype: string(50)
voeding: string(50)
volume: float
gewicht: float
prijs: float
So, a "toebehoren" has many "product", but the relation in
"productToebehoren" is not saved correctly.
it doesn't save the Key of toebehoren in the relation-table.
I did not change any PHP-code.
you can see the interface generated here: http://nl.tinypic.com/r/xgfker/4
Thanks for helping me
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---