Hi all.
In my website I have a module named Post.Each Post created by a user.
I use SfDocringGuard plugin.Now in new action of Post module I untested
user_id that displayed via a combo box.
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"
Whats the problem?
Did I modify the right class?
Thanks for any help.
--
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