1
0
mirror of synced 2025-01-29 19:41:45 +03:00

Merge pull request #370 from Ph3nol/ph3-phpcs-fixes

Some PHP-CS fixes
This commit is contained in:
Guilherme Blanco 2012-06-14 22:40:50 -07:00
commit 8bb4f53447

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);
}