Hi Chee Wai Chong,

Looking at the Yaml driver [1] this seems correct:

>   fields:
>     version:
>       type: integer
>       version: true


What exactly is going wrong?


[1]: 
https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php

-- 
Jasper N. Brouwer
(@jaspernbrouwer)


On 6 Jan 2014, at 05:23, Chee Wai Chong <[email protected]> wrote:

> Hi,
> 
> According to the example at 
> http://www.doctrine-project.org/blog/doctrine2-behaviours-nutshell.html#versionable
> The way to implement versionable behaviour is to add, among other things, the 
> @version annotation to an integer/datetime value in the entity, ergo:
> 
>     /**
>      * @Column(type="integer")
>      * @version
>      */
>     private $version;
> 
> 
> May I ask what is the equivalent statement in YAML?
> I have tried with no success, the following:
> 
>   fields:
>     version:
>       type: integer
>       version: true
> 
> 
> Thanks!
> CW

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to