1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/models/EventListenerChainTest.php

22 lines
510 B
PHP

<?php
class EventListenerChainTest extends Doctrine_Record
{
public function setTableDefinition() {
$this->hasColumn('name', 'string', 100);
}
public function setUp() {
$chain = new Doctrine_EventListener_Chain();
$chain->add(new Doctrine_EventListener_TestA());
$chain->add(new Doctrine_EventListener_TestB());
}
}
class Doctrine_EventListener_TestA extends Doctrine_EventListener
{
}
class Doctrine_EventListener_TestB extends Doctrine_EventListener
{
}