1
0
mirror of synced 2025-01-18 22:41:43 +03:00

Some PHP-CS fixes

This commit is contained in:
Ph3nol 2012-06-11 12:39:18 +02:00
parent 7b758493a3
commit 2abb459770

View File

@ -61,8 +61,8 @@ class EntityRepository implements ObjectRepository
public function __construct($em, Mapping\ClassMetadata $class)
{
$this->_entityName = $class->name;
$this->_em = $em;
$this->_class = $class;
$this->_em = $em;
$this->_class = $class;
}
/**
@ -100,7 +100,7 @@ class EntityRepository implements ObjectRepository
$queryMapping = $this->_class->getNamedNativeQuery($queryName);
$rsm = new Query\ResultSetMappingBuilder($this->_em);
$rsm->addNamedNativeQueryMapping($this->_class, $queryMapping);
return $this->_em->createNativeQuery($queryMapping['query'], $rsm);
}