/
home
/
obinna
/
html
/
restaurants
/
vendor
/
doctrine
/
orm
/
lib
/
Doctrine
/
ORM
/
Decorator
/
Upload File
HOME
<?php /* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * This software consists of voluntary contributions made by many individuals * and is licensed under the MIT license. For more information, see * <http://www.doctrine-project.org>. */ namespace Doctrine\ORM\Decorator; use Doctrine\ORM\Query\ResultSetMapping; use Doctrine\ORM\EntityManagerInterface; use Doctrine\Persistence\ObjectManagerDecorator; /** * Base class for EntityManager decorators * * @since 2.4 * @author Lars Strojny <lars@strojny.net */ abstract class EntityManagerDecorator extends ObjectManagerDecorator implements EntityManagerInterface { /** * @var EntityManagerInterface */ protected $wrapped; /** * @param EntityManagerInterface $wrapped */ public function __construct(EntityManagerInterface $wrapped) { $this->wrapped = $wrapped; } /** * {@inheritdoc} */ public function getConnection() { return $this->wrapped->getConnection(); } /** * {@inheritdoc} */ public function getExpressionBuilder() { return $this->wrapped->getExpressionBuilder(); } /** * {@inheritdoc} */ public function beginTransaction() { $this->wrapped->beginTransaction(); } /** * {@inheritdoc} */ public function transactional($func) { return $this->wrapped->transactional($func); } /** * {@inheritdoc} */ public function commit() { $this->wrapped->commit(); } /** * {@inheritdoc} */ public function rollback() { $this->wrapped->rollback(); } /** * {@inheritdoc} */ public function createQuery($dql = '') { return $this->wrapped->createQuery($dql); } /** * {@inheritdoc} */ public function createNamedQuery($name) { return $this->wrapped->createNamedQuery($name); } /** * {@inheritdoc} */ public function createNativeQuery($sql, ResultSetMapping $rsm) { return $this->wrapped->createNativeQuery($sql, $rsm); } /** * {@inheritdoc} */ public function createNamedNativeQuery($name) { return $this->wrapped->createNamedNativeQuery($name); } /** * {@inheritdoc} */ public function createQueryBuilder() { return $this->wrapped->createQueryBuilder(); } /** * {@inheritdoc} */ public function getReference($entityName, $id) { return $this->wrapped->getReference($entityName, $id); } /** * {@inheritdoc} */ public function getPartialReference($entityName, $identifier) { return $this->wrapped->getPartialReference($entityName, $identifier); } /** * {@inheritdoc} */ public function close() { $this->wrapped->close(); } /** * {@inheritdoc} */ public function copy($entity, $deep = false) { return $this->wrapped->copy($entity, $deep); } /** * {@inheritdoc} */ public function lock($entity, $lockMode, $lockVersion = null) { $this->wrapped->lock($entity, $lockMode, $lockVersion); } /** * {@inheritdoc} */ public function find($className, $id, $lockMode = null, $lockVersion = null) { return $this->wrapped->find($className, $id, $lockMode, $lockVersion); } /** * {@inheritdoc} */ public function flush($entity = null) { $this->wrapped->flush($entity); } /** * {@inheritdoc} */ public function getEventManager() { return $this->wrapped->getEventManager(); } /** * {@inheritdoc} */ public function getConfiguration() { return $this->wrapped->getConfiguration(); } /** * {@inheritdoc} */ public function isOpen() { return $this->wrapped->isOpen(); } /** * {@inheritdoc} */ public function getUnitOfWork() { return $this->wrapped->getUnitOfWork(); } /** * {@inheritdoc} */ public function getHydrator($hydrationMode) { return $this->wrapped->getHydrator($hydrationMode); } /** * {@inheritdoc} */ public function newHydrator($hydrationMode) { return $this->wrapped->newHydrator($hydrationMode); } /** * {@inheritdoc} */ public function getProxyFactory() { return $this->wrapped->getProxyFactory(); } /** * {@inheritdoc} */ public function getFilters() { return $this->wrapped->getFilters(); } /** * {@inheritdoc} */ public function isFiltersStateClean() { return $this->wrapped->isFiltersStateClean(); } /** * {@inheritdoc} */ public function hasFilters() { return $this->wrapped->hasFilters(); } /** * {@inheritdoc} */ public function getCache() { return $this->wrapped->getCache(); } }