2012-07-30 04:46:38 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\Models\Company;
|
|
|
|
|
|
|
|
use Doctrine\ORM\Event\LifecycleEventArgs;
|
|
|
|
|
|
|
|
class FlexUltraContractSubscriber
|
|
|
|
{
|
|
|
|
static public $prePersistCalls;
|
|
|
|
static public $instances;
|
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
self::$instances[] = $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @PrePersist
|
|
|
|
*/
|
2012-07-30 05:03:29 +04:00
|
|
|
public function prePersistHandler1(CompanyContract $contract, LifecycleEventArgs $args)
|
2012-07-30 04:46:38 +04:00
|
|
|
{
|
2012-07-30 05:03:29 +04:00
|
|
|
self::$prePersistCalls[] = func_get_args();
|
2012-07-30 04:46:38 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @PrePersist
|
|
|
|
*/
|
2012-07-30 05:03:29 +04:00
|
|
|
public function prePersistHandler2(CompanyContract $contract, LifecycleEventArgs $args)
|
2012-07-30 04:46:38 +04:00
|
|
|
{
|
2012-07-30 05:03:29 +04:00
|
|
|
self::$prePersistCalls[] = func_get_args();
|
2012-07-30 04:46:38 +04:00
|
|
|
}
|
|
|
|
}
|