2013-02-14 02:42:13 +04:00
|
|
|
<?php
|
|
|
|
|
2015-01-15 08:01:52 +03:00
|
|
|
namespace Doctrine\Tests\ORM\Cache\Persister\Collection;
|
2013-02-14 02:42:13 +04:00
|
|
|
|
|
|
|
use Doctrine\ORM\Cache\Region;
|
|
|
|
use Doctrine\ORM\EntityManager;
|
2015-01-15 08:01:52 +03:00
|
|
|
use Doctrine\ORM\Persisters\Collection\CollectionPersister;
|
|
|
|
use Doctrine\ORM\Cache\Persister\Collection\ReadOnlyCachedCollectionPersister;
|
2013-02-14 02:42:13 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @group DDC-2183
|
|
|
|
*/
|
|
|
|
class ReadOnlyCachedCollectionPersisterTest extends AbstractCollectionPersisterTest
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
protected function createPersister(EntityManager $em, CollectionPersister $persister, Region $region, array $mapping)
|
|
|
|
{
|
|
|
|
return new ReadOnlyCachedCollectionPersister($persister, $region, $em, $mapping);
|
|
|
|
}
|
2015-01-15 08:01:52 +03:00
|
|
|
}
|