stephpy / timeline-bundle

Symfony2 bundle to make timeline
193 stars 57 forks source link

Adding new field #173

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hi, Please I need to add new field in Component entity. How can I do it ?

ghost commented 9 years ago

any ideas please ?

stephpy commented 9 years ago

Hi,

You should look at documentation on doctrine orm. It's easy, you only have to add some annotations & properties in your component class. This is not about TimelineBundle.

ghost commented 9 years ago

I know how to work with doctrine orm... and I did it but it doen't work, this why I'm asking if there is something about TimelineBundle.

this is my entity : namespace Sonata\TimelineBundle\Entity;

use Spy\TimelineBundle\Entity\Component as BaseComponent; use Doctrine\ORM\Mapping as ORM; /**

I can't generate getters and setters and I can't update schema

stephpy commented 9 years ago

You setted an @orm\Column on public function getId() ? Or there is a mistake on copy/paste

stephpy commented 9 years ago

have you any error ?

I still think it's a doctrine “issue“.

stephpy commented 9 years ago

I'm sorry, i can't help. I use mapped super class and overriding attributes all day and i have not any problem. You have probably missed something ...