Can you post you schema.yml with respect to this model?
> *De :* Seifollh Ghaderi <[email protected]> > *À :* [email protected] > *Envoyé le :* Mer 8 décembre 2010, 19h 59min 17s > *Objet :* [symfony-users] Where Modify action before saving > > Hi all. > In my website I have Post module that each Post created by a user. > I use SfDocringGuard plugin. > I need to hidden used_id that displayed via a combo box in post/new page > and set it when user save the form.But I don't know where to do it? > I modified Post.class.php as bellow > /lib/model/Post.class.php > Code: public function save(Doctrine_Connection $conn=null) > { > $now=$this->getCreatedAt()? > $this->getDateTimeObject('created_at')->format('U'):time(); > $this->setExpiresAt(date('y-m-d H:i:s'),time() + 84600 * 30); > $this->setUserId($this->getUser()->getGuardUser()->getId()); > $this->setIsActivated(true); > } > > It give this error: > Unknown record property / related component "user" on "Post" > My Post class has user attribute and relation between them is ok so whats > the problem? > Did I modify the right class?what's the sequence of function for saving a > form? > > Thanks for any help. > > -- > Best Regards. > Seifollah Ghaderi > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > 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]<symfony-users%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > 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]<symfony-users%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- Alex Pilon (613) 608-1480 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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
