1
0
mirror of synced 2025-02-06 23:39:25 +03:00

removed duplicate preSave listener event - also called in Session

This commit is contained in:
doctrine 2006-07-22 00:58:07 +00:00
parent fda1f37067
commit 50cced9e54

View File

@ -695,9 +695,6 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
final public function save() { final public function save() {
$this->table->getSession()->beginTransaction(); $this->table->getSession()->beginTransaction();
// listen the onPreSave event
$this->table->getAttribute(Doctrine::ATTR_LISTENER)->onPreSave($this);
$saveLater = $this->table->getSession()->saveRelated($this); $saveLater = $this->table->getSession()->saveRelated($this);
$this->table->getSession()->save($this); $this->table->getSession()->save($this);