Fix missing property issue.
The property foreign does not exists. The method getForeign returns the first foreign key.
Add an option to only generate the base entity so the entending entity will not be overwritten.