I will not say much on this since this is a dirty hack :)
Doctrine will not allow you to use the tool to generate entities out of the database that contains tables without primary key. 100 more words