vendor/doctrine/persistence/lib/Doctrine/Persistence/ObjectManagerDecorator.php line 100

Open in your IDE?
  1. <?php
  2. namespace Doctrine\Persistence;
  3. use function class_exists;
  4. /**
  5.  * Base class to simplify ObjectManager decorators
  6.  */
  7. abstract class ObjectManagerDecorator implements ObjectManager
  8. {
  9.     /** @var ObjectManager */
  10.     protected $wrapped;
  11.     /**
  12.      * {@inheritdoc}
  13.      */
  14.     public function find($className$id)
  15.     {
  16.         return $this->wrapped->find($className$id);
  17.     }
  18.     /**
  19.      * {@inheritdoc}
  20.      */
  21.     public function persist($object)
  22.     {
  23.         $this->wrapped->persist($object);
  24.     }
  25.     /**
  26.      * {@inheritdoc}
  27.      */
  28.     public function remove($object)
  29.     {
  30.         $this->wrapped->remove($object);
  31.     }
  32.     /**
  33.      * {@inheritdoc}
  34.      */
  35.     public function merge($object)
  36.     {
  37.         return $this->wrapped->merge($object);
  38.     }
  39.     /**
  40.      * {@inheritdoc}
  41.      */
  42.     public function clear($objectName null)
  43.     {
  44.         $this->wrapped->clear($objectName);
  45.     }
  46.     /**
  47.      * {@inheritdoc}
  48.      */
  49.     public function detach($object)
  50.     {
  51.         $this->wrapped->detach($object);
  52.     }
  53.     /**
  54.      * {@inheritdoc}
  55.      */
  56.     public function refresh($object)
  57.     {
  58.         $this->wrapped->refresh($object);
  59.     }
  60.     /**
  61.      * {@inheritdoc}
  62.      */
  63.     public function flush()
  64.     {
  65.         $this->wrapped->flush();
  66.     }
  67.     /**
  68.      * {@inheritdoc}
  69.      */
  70.     public function getRepository($className)
  71.     {
  72.         return $this->wrapped->getRepository($className);
  73.     }
  74.     /**
  75.      * {@inheritdoc}
  76.      */
  77.     public function getClassMetadata($className)
  78.     {
  79.         return $this->wrapped->getClassMetadata($className);
  80.     }
  81.     /**
  82.      * {@inheritdoc}
  83.      */
  84.     public function getMetadataFactory()
  85.     {
  86.         return $this->wrapped->getMetadataFactory();
  87.     }
  88.     /**
  89.      * {@inheritdoc}
  90.      */
  91.     public function initializeObject($obj)
  92.     {
  93.         $this->wrapped->initializeObject($obj);
  94.     }
  95.     /**
  96.      * {@inheritdoc}
  97.      */
  98.     public function contains($object)
  99.     {
  100.         return $this->wrapped->contains($object);
  101.     }
  102. }
  103. class_exists(\Doctrine\Common\Persistence\ObjectManagerDecorator::class);