1
0
mirror of synced 2025-02-20 14:13:15 +03:00

removed superfluous code

This commit is contained in:
romanb 2008-03-05 11:25:56 +00:00
parent c5bc8641cc
commit d8b9656d3b

View File

@ -291,7 +291,6 @@ class Doctrine_Hydrator extends Doctrine_Hydrator_Abstract
protected function _gatherRowData(&$data, &$cache, &$id, &$nonemptyComponents)
{
$rowData = array();
//$className = null;
foreach ($data as $key => $value) {
// Parse each column name only once. Cache the results.
@ -305,15 +304,6 @@ class Doctrine_Hydrator extends Doctrine_Hydrator_Abstract
$fieldName = $mapper->getFieldName($columnName);
$cache[$key]['fieldName'] = $fieldName;
// determine the class name
/*if ( ! $className) {
if ($classMetadata->isDiscriminatorColumn($columnName)) {
$className = $this->_getClassnameToReturn();
} else if ( ! $className) {
$className = $classMetadata->getClassName();
}
}*/
// cache identifier information
if ($classMetadata->isIdentifier($fieldName)) {
$cache[$key]['isIdentifier'] = true;