Commit 6d273563 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 9703f18c
......@@ -185,6 +185,17 @@ $conn->addListener(new Logger());
</code>
++ The Event object
+++ Getting the invoker
You can get the object that invoked the event by calling getInvoker():
<code type='php'>
class MyListener extends Doctrine_EventListener
{
public function preExec(Doctrine_Event $event)
{
$event->getInvoker(); // Doctrine_Connection
}
}
</code>
+++ Event codes
Doctrine_Event uses constants as event codes. Above is the list of all availible event constants:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment