Adding new field
Closed this issue · 6 comments
Hi,
Please I need to add new field in Component entity.
How can I do it ?
any ideas please ?
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.
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;
/**
- Component entity for Doctrine ORM.
* - @uses BaseComponent
/
class Component extends BaseComponent
{
/*
I can't generate getters and setters and I can't update schema
You setted an @orm\Column
on public function getId()
? Or there is a mistake on copy/paste
have you any error ?
I still think it's a doctrine “issue“.
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 ...