small optimization
This commit is contained in:
parent
d685f592fe
commit
d961028b14
2 changed files with 3 additions and 8 deletions
lib/Doctrine/ORM/Internal/Hydration
tests/Doctrine/Tests/ORM/Functional/Ticket
|
@ -178,14 +178,9 @@ class SimpleObjectHydrator extends AbstractHydrator
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($this->_rsm->metaMappings[$column])) {
|
if (isset($this->_rsm->metaMappings[$column])) {
|
||||||
$name = $this->_rsm->metaMappings[$column];
|
|
||||||
$type = isset($this->_rsm->typeMappings[$column])
|
|
||||||
? $this->_rsm->typeMappings[$column]
|
|
||||||
: null;
|
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'name' => $name,
|
'name' => $this->_rsm->metaMappings[$column],
|
||||||
'type' => $type
|
'type' => (isset($this->_rsm->typeMappings[$column]) ? $this->_rsm->typeMappings[$column] : null)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -208,4 +208,4 @@ class DDC2494TinyIntType extends Type
|
||||||
{
|
{
|
||||||
return 'ddc2494_tinyint';
|
return 'ddc2494_tinyint';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue