[Solved] How to use Gedmo when starting a new project ?

0 votes
asked Mar 6, 2017 in How To & Manuals by Guillaume (220 points)
edited Mar 17, 2017 by ludek.vodicka

Hey,

I start a new project today and i need to use Gedmo in my entities !

So how to do that ?

Thk.

1 Answer

0 votes
answered Mar 6, 2017 by ludek.vodicka Skipper developer (140,450 points)
selected Mar 6, 2017 by Guillaume
 
Best answer

There is no special settings for that. Just start modelling Doctrine2 and add Gedmo to your entities

commented Mar 6, 2017 by Guillaume (220 points)

Mhum ok, but how ? in entitie .yml / .xml ?

Beacause in tools interface, when start new project :

File > Create project > New ORM Project > Doctrine2 ORM > Symfony3

And add "update_at" field with "datetime" I can't find somting "On Update Gedmo" in interface ;(

If i need to use export, add this " * @Gedmo\Timestampable(on="update")" in the file and import, it is so mhum... not user freindly...

enter image description here

commented Mar 6, 2017 by ludek.vodicka Skipper developer (140,450 points)

You have turned-on filter for "filled items only" ;-)

Also please be aware that Gedmo is available for entity, not field. So you need to choose any entity settings (name, description,...) to see Gedmo property.

enter image description here

commented Mar 6, 2017 by Guillaume (220 points)

" So you need to choose any entity settings (name, description,...) to see Gedmo property."

Thk !

...