commit
6cd0861fa3
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user