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
-
Activity
Benjamin Eberlei
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Duplicate [ 3 ] |
Benjamin Eberlei
made changes -
Benjamin Eberlei
made changes -
| Workflow | jira [ 13735 ] | jira-feedback [ 15360 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback [ 15360 ] | jira-feedback2 [ 17224 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback2 [ 17224 ] | jira-feedback3 [ 19479 ] |
This list may be incomplete, as errors occurred whilst retrieving source from linked applications:
- Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1841, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
This is the same as
DDC-1777