Hi

I'm trying to figure out what I've broken to make one admin generator
generated screens stop picking up foreign keys properly.

By this I mean I am utilising the __toString(); method in the model
for the foreign table so that a list of all the possible foreign keys
is displayed in a drop-down rather than the ID

In my app on live I go to edit a record and there's a drop-down on dev
and test (all three same version, v1.0.5) the same admin screens just
show a text field with the foreign ID now.

On dev and test I have changed generator.yml for the relevant screen,
but not for these fields.I check the database, the dump, the
schema.yml and the foreign key is there, to double check I've run
symfony propel-build-schema and it's still there but admin screens
don't seem to pick up on the relationship.

Why?

table structure is:

University
-------------
id
town_id
FK town_id

Town
-------
id
name

in the model for Town there is a __toString() method which returns
$this->getName();

In the admin screen for University where I list in my display town_id,
I get a text field and the ID, no drop-down like I get on other
screens.

Any help appreciated

Darren


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to