class News extends BaseNews
{
public function save(Doctrine_Connection $conn = null)
{
$this->setUserId($this->getAttribute('user_id'));
return parent::save($conn);
}
}
How can i get here current save News ID? I would like add this for session, but i dont know how can i get this?
Never used symfony but as far as I understand you, you want something like this: