Show
Ignore:
Timestamp:
12/17/08 16:14:01 (15 months ago)
Author:
jwage
Message:

[1.0, 1.1] Fixes issue with inheritance type column when it is aliased (closes #1713)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.1/lib/Doctrine/Hydrator/RecordDriver.php

    r5016 r5298  
    160160            $inheritanceMap = $table->getOption('inheritanceMap'); 
    161161            list($key, $value) = each($inheritanceMap); 
     162            $key = $this->_tables[$component]->getFieldName($key); 
    162163            if ( ! isset($data[$key]) || $data[$key] != $value) { 
    163164                continue;