just do something like:
/**
* @ORM\Id
* @ORM\Column(name="_ID", type="integer", nullable=false)
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $internal_id;
Maybe?
the issue comes when doctrine tries to map from database to annotations. If you have 100 tables and you want to map them to classes and doctrine just deletes _ and capitalizes attributes there comes an issue where _ID is mapped to the same as id.
Come to think of it, couldn't you overwrite / extend this behavior on doctrine side? Maybe even using reflections
Обсуждают сегодня