1
0
mirror of synced 2025-03-22 07:53:49 +03:00

EmptyEventListener -> Doctrine_EventListener_Empty

This commit is contained in:
doctrine 2006-08-07 22:12:45 +00:00
parent 94975e7ac8
commit 594e793285
3 changed files with 8 additions and 5 deletions

View File

@ -62,9 +62,6 @@ abstract class Doctrine_EventListener implements Doctrine_EventListener_Interfac
public function onCollectionDelete(Doctrine_Collection $collection) { }
public function onPreCollectionDelete(Doctrine_Collection $collection) { }
}
/**
* an emtpy listener all components use this by default
*/
class EmptyEventListener extends Doctrine_EventListener { }
?>

View File

@ -0,0 +1,6 @@
<?php
/**
* an emtpy listener all components use this by default
*/
class Doctrine_EventListener_Empty extends Doctrine_EventListener { }
?>

View File

@ -86,7 +86,7 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera
Doctrine::ATTR_CACHE => Doctrine::CACHE_NONE,
Doctrine::ATTR_BATCH_SIZE => 5,
Doctrine::ATTR_COLL_LIMIT => 5,
Doctrine::ATTR_LISTENER => new EmptyEventListener(),
Doctrine::ATTR_LISTENER => new Doctrine_EventListener_Empty(),
Doctrine::ATTR_PK_COLUMNS => array("id"),
Doctrine::ATTR_PK_TYPE => Doctrine::INCREMENT_KEY,
Doctrine::ATTR_LOCKMODE => 1,