V-labs / VlabsMediaBundle

Form, database and filesystem abstraction for files
44 stars 18 forks source link

Now supports entity properties with underscore #20

Closed rbaarsma closed 11 years ago

rbaarsma commented 11 years ago

We have decided to use lower-case + underscores for variables, including the properties of an entity. Example private $front_image;

This was leading to errors, because the getter would result in getFront_image(). The getter defaults as per standard doctrine 2 (also when you use doc:gen:entities) to getFrontImage(). Therefore your function also needed to have the same behavior to prevent errors.

I hope this helps :)

choomz commented 11 years ago

Thanks