1
0
mirror of synced 2025-01-19 06:51:40 +03:00

Added namedQueries as optional during serialization of ClassMetadata.

This commit is contained in:
Guilherme Blanco 2011-03-14 01:04:50 -03:00
parent 925f1c281c
commit 180078d0f6

View File

@ -275,7 +275,6 @@ class ClassMetadata extends ClassMetadataInfo
{
// This metadata is always serialized/cached.
$serialized = array(
'namedQueries',
'associationMappings',
'columnNames', //TODO: Not really needed. Can use fieldMappings[$fieldName]['columnName']
'fieldMappings',
@ -331,6 +330,10 @@ class ClassMetadata extends ClassMetadataInfo
$serialized[] = 'lifecycleCallbacks';
}
if ($this->namedQueries) {
$serialized[] = 'namedQueries';
}
return $serialized;
}