Maybe the profile row isn't in database when saving the form ... and symfony don't know how to create the row... look if foreign keys are set..
On 12 led, 16:07, Ahmed <[email protected]> wrote: > any help please ? > > On 12 jan, 12:14, Ahmed <[email protected]> wrote: > > > > > I have a UserForm extends BasesfGuardUserForm wich embed an another > > (sfGuardUserFormProfile) > > this is the modele (simplified): > > > sfGuardUser: > > columns: > > id: > > type: integer(4) > > primary: true > > autoincrement: true > > > sfGuardUserProfile: > > tableName: sf_guard_user_profile > > columns: > > id: > > type: integer(8) > > primary: true > > notnull: true > > autoincrement: true > > user_id: > > type: integer(4) > > default: null > > relations: > > User: > > class: sfGuardUser > > local: user_id > > foreign: id > > foreignType: one > > foreignAlias: Profile > > onDelete: CASCADE > > > and this is how i embed the form > > > $profileForm = new sfGuardUserProfileForm($this->getObject()->getProfile()); > > > $this->embedForm('profile', $profileForm); > > > But in form saving i have this error : > > > Fatal error: Call to a member function getTable() on a non-object in D: > > \work\green\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor > > \doctrine\Doctrine\Record.php on line 1243 > > > in the line 1243 i have this line : $relatedTable = $value->getTable > > (); > > print_r display the $value i have as an array (not an object) > > > Best regard Ahmed.
-- 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.
