removed superfluous code
This commit is contained in:
parent
c5bc8641cc
commit
d8b9656d3b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user