i would like make copy if i add and edit News.
class News extends BaseNews
{
public function postSave(){
$copy = new CopyNews($this);
$copy->save();
}
public function save(Doctrine_Connection $conn = null)
{
return parent::save($conn);
}
}
but i have error:
Strict Standards: Declaration of News::postSave() should be compatible with that of Doctrine_Record::postSave() in ...
How can i make this?