V-labs / VlabsMediaBundle

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

How to add custom properties to an Image ? #28

Closed daslicht closed 10 years ago

daslicht commented 10 years ago

Hello, Ive tried to add the following to my Image Class:

    /**
     * Defines if the current picture should be shown as thumb in list
     * @var boolean $isThumb
     */
    private $isThumb;

When I try to generate getter/setters they are not generated. I created them manually but when I run:

php app/console doctrine:schema:update --force

The Database Scheme do not change ?

choomz commented 10 years ago

Hi,

You need to map the field to doctrine ... check the documentation http://symfony.com/doc/current/book/doctrine.html#add-mapping-information

daslicht commented 10 years ago

thank you