Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 2.2.2
-
Fix Version/s: None
-
Component/s: ORM
-
Security Level: All
-
Labels:None
-
Environment:MAC OSX, Apache2, Apc cache, PHP 5.3.10
Description
PDOException #42S22
SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.id' in 'where clause'
I found problem in class Doctrine\ORM\Persisters\BasicEntityPersister on line 1305 ($className = (isset($this->_class->fieldMappings[$field]['inherited'])) ? $this->_class->fieldMappings[$field]['inherited'] : $this->_class->name
.
I get the wrong entity class name, probably because of the inherited.
I temporarily fix it like this: $className = $this->_class->name;
Issue Links
- duplicates
-
DDC-1777
BasicEntityPersister::exists() creates broken SQL with inheritance
-
This is the same as
DDC-1777