EmptyEventListener -> Doctrine_EventListener_Empty
This commit is contained in:
parent
94975e7ac8
commit
594e793285
Doctrine
@ -62,9 +62,6 @@ abstract class Doctrine_EventListener implements Doctrine_EventListener_Interfac
|
|||||||
public function onCollectionDelete(Doctrine_Collection $collection) { }
|
public function onCollectionDelete(Doctrine_Collection $collection) { }
|
||||||
public function onPreCollectionDelete(Doctrine_Collection $collection) { }
|
public function onPreCollectionDelete(Doctrine_Collection $collection) { }
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* an emtpy listener all components use this by default
|
|
||||||
*/
|
|
||||||
class EmptyEventListener extends Doctrine_EventListener { }
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
6
Doctrine/EventListener/Empty.php
Normal file
6
Doctrine/EventListener/Empty.php
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* an emtpy listener all components use this by default
|
||||||
|
*/
|
||||||
|
class Doctrine_EventListener_Empty extends Doctrine_EventListener { }
|
||||||
|
?>
|
@ -86,7 +86,7 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera
|
|||||||
Doctrine::ATTR_CACHE => Doctrine::CACHE_NONE,
|
Doctrine::ATTR_CACHE => Doctrine::CACHE_NONE,
|
||||||
Doctrine::ATTR_BATCH_SIZE => 5,
|
Doctrine::ATTR_BATCH_SIZE => 5,
|
||||||
Doctrine::ATTR_COLL_LIMIT => 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_COLUMNS => array("id"),
|
||||||
Doctrine::ATTR_PK_TYPE => Doctrine::INCREMENT_KEY,
|
Doctrine::ATTR_PK_TYPE => Doctrine::INCREMENT_KEY,
|
||||||
Doctrine::ATTR_LOCKMODE => 1,
|
Doctrine::ATTR_LOCKMODE => 1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user