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

Merge pull request #945 from raziel057/patch-1

Fix CS
This commit is contained in:
Steve Müller 2014-02-09 16:54:22 +01:00
commit 6cd0861fa3

View File

@ -2370,7 +2370,7 @@ class ClassMetadataInfo implements ClassMetadata
$queryMapping['isSelfClass'] = false; $queryMapping['isSelfClass'] = false;
if (isset($queryMapping['resultClass'])) { if (isset($queryMapping['resultClass'])) {
if($queryMapping['resultClass'] === '__CLASS__') { if ($queryMapping['resultClass'] === '__CLASS__') {
$queryMapping['isSelfClass'] = true; $queryMapping['isSelfClass'] = true;
$queryMapping['resultClass'] = $this->name; $queryMapping['resultClass'] = $this->name;
@ -2410,7 +2410,7 @@ class ClassMetadataInfo implements ClassMetadata
} }
$entityResult['isSelfClass'] = false; $entityResult['isSelfClass'] = false;
if($entityResult['entityClass'] === '__CLASS__') { if ($entityResult['entityClass'] === '__CLASS__') {
$entityResult['isSelfClass'] = true; $entityResult['isSelfClass'] = true;
$entityResult['entityClass'] = $this->name; $entityResult['entityClass'] = $this->name;
@ -2430,7 +2430,7 @@ class ClassMetadataInfo implements ClassMetadata
if (!isset($field['column'])) { if (!isset($field['column'])) {
$fieldName = $field['name']; $fieldName = $field['name'];
if(strpos($fieldName, '.')){ if (strpos($fieldName, '.')) {
list(, $fieldName) = explode('.', $fieldName); list(, $fieldName) = explode('.', $fieldName);
} }
@ -2583,7 +2583,7 @@ class ClassMetadataInfo implements ClassMetadata
*/ */
public function addLifecycleCallback($callback, $event) public function addLifecycleCallback($callback, $event)
{ {
if(isset($this->lifecycleCallbacks[$event]) && in_array($callback, $this->lifecycleCallbacks[$event])) { if (isset($this->lifecycleCallbacks[$event]) && in_array($callback, $this->lifecycleCallbacks[$event])) {
return; return;
} }