DDC-588: EntityManager::refresh fails when ID columnName differs from fieldName #5093

doctrinebot opened this Issue May 14, 2010 · 4 comments

1 participant


Jira issue originally created by user @hobodave:


 * @Entity
 * @Table(name="site")
class Site
     * @Id
     * @Column(type="integer", name="site_id")
     * @GeneratedValue
    protected $id;

    /*** @Column(type="string",length=45, unique=true) **/
    protected $name;

    public function **construct($name = '')
        $this->name = $name;

$site = new Site('Foo');


Doctrine\ORM\ORMException: Unrecognized field: site_id


Comment created by @beberlei:

Is this fixed now or not?


Comment created by romanb:

I think so. If not please reopen.


Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.0-BETA2 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment