Commit d8b9656d authored by romanb's avatar romanb

removed superfluous code

parent c5bc8641
...@@ -291,7 +291,6 @@ class Doctrine_Hydrator extends Doctrine_Hydrator_Abstract ...@@ -291,7 +291,6 @@ class Doctrine_Hydrator extends Doctrine_Hydrator_Abstract
protected function _gatherRowData(&$data, &$cache, &$id, &$nonemptyComponents) protected function _gatherRowData(&$data, &$cache, &$id, &$nonemptyComponents)
{ {
$rowData = array(); $rowData = array();
//$className = null;
foreach ($data as $key => $value) { foreach ($data as $key => $value) {
// Parse each column name only once. Cache the results. // Parse each column name only once. Cache the results.
...@@ -305,15 +304,6 @@ class Doctrine_Hydrator extends Doctrine_Hydrator_Abstract ...@@ -305,15 +304,6 @@ class Doctrine_Hydrator extends Doctrine_Hydrator_Abstract
$fieldName = $mapper->getFieldName($columnName); $fieldName = $mapper->getFieldName($columnName);
$cache[$key]['fieldName'] = $fieldName; $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 // cache identifier information
if ($classMetadata->isIdentifier($fieldName)) { if ($classMetadata->isIdentifier($fieldName)) {
$cache[$key]['isIdentifier'] = true; $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