Commit d8b9656d authored by romanb's avatar romanb

removed superfluous code

parent c5bc8641
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment