I'm sorry for this lack of clarity. $relatedTable = $value->getTable(); is a part of coreSetRelated() which is a method of sfDoctrinePlugin/ lib/vendor/ doctrine/Doctrine/Record.php
The "funny part" is the only PHPDoc for that method in Doctrine's API is : "DESCRIBE WHAT THIS METHOD DOES, PLEASE!" (no offense for that, I know how hard it is to keep everything clean). Anyway, it seems that J. Wage closed the ticket this week end and it was a Doctrine issue (fixed in 1.2) : - jwage [1.2][DC-103] Change to get table from relation instead of value Thanks a lot for it's great work. You can find more information for that issue there : http://www.doctrine-project.org/jira/browse/DC-103 Best regards, Olivier On 2 nov, 00:52, Alexandre SALOME <[email protected]> wrote: > We cannot figure your problem, what variables are, etc. > > Giving theses values ($value and $rel) has no sense for us, since we don't > have their declaration. > > Alex' > > 2009/10/28 Guu_sama <[email protected]> > > > > > > > > > Hi, > > > I use many embedded Doctrine forms in my project. Everything goes fine > > until I upgrade my symfony version from 1.2.7 to 1.2.8. Now, everytime > > I save a form with an embedded one, I've got that fatal error : > > > "Fatal error: Call to a member function getTable() on a non-object in / > > home/dev/workspace/symfony/lib/plugins/sfDoctrinePlugin/ lib/vendor/ > > doctrine/Doctrine/Record.php on line 1231" > > > At this line we have : $relatedTable = $value->getTable(); > > > If I modify this line to $relatedTable = $rel->getTable(); everything > > goes fine again. Indeed, in some cases $value is not an instance of > > Doctrine_Record but a simple Array. > > > After some research on symfony's trac & forums and on Doctrine's Jira, > > the problem seems to be that I use same names for my embedded forms > > and my relationships. > > > I searched carefully symfony and doctrine changelogs, but I do not > > understand that new behavior... where is the problem ? Symfony ? > > Doctrine ? My apps :-) ? > > > These topics are related to my question (I posted there without any > > anwser) : > > > -http://forum.symfony-project.org/index.php/t/21184/ > > -http://www.doctrine-project.org/jira/browse/DC-103 > > > Thanks in advance to those who have time to think about my problem > > (even without an answer ;-)) > > > Best regards, > > > Olivier > > -- > Alexandre Salomé -- [email protected] Masquer le texte des messages > précédents - > > - Afficher le texte des messages précédents - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
