hi emanuele,
i played around with
https://github.com/jackalope/JavaDavexClient and
indeed it seems that mix:versionable works while mix:simpleVersionable
does not (and its implemented quite badly, as the mixin is accepted but
then you get failures in unexpected moments)
so indeed we must have full versionable for this to work. can you do a
pull request with a hint on that for the phpcr-odm-documentation please?
cheers,david
> <javascript:>> wrote:
>
>> The cause seems to be in the node
>> mixin mix:simpleVersionable (simple versioning mode)
>> If I add mix:versionable mixin to the node, enabling full
>> versioning mode, then I'm able to check in.
>>
>> So I changed my class definition from:
>>
>> /**
>> * @PHPCR\Document(versionable="simple")
>> */
>> class TestDoc
>>
>> to:
>>
>> /**
>> * @PHPCR\Document(versionable="full")
>> */
>> class TestDoc
>>
>>
>> And the versioning is working.
>>
>> Can be this considered a bug in PHPCR-ODM, as the documentation
>> (
http://docs.doctrine-project.org/projects/doctrine-phpcr-odm/en/latest/reference/versioning.html
>> <
http://docs.doctrine-project.org/projects/doctrine-phpcr-odm/en/latest/reference/versioning.html>)
>> states that checkin is possible also with simple versioning mode?
>
> indeed .. a checkin should be possible with simple and full
> versioning (see 15.2):
>
http://www.day.com/specs/jcr/2.0/15_Versioning.html
> <
http://www.day.com/specs/jcr/2.0/15_Versioning.html>
>
> Now the issue can be in multiple places.
> PHPCR ODM might not be setting simple versioning correctly. You can
> check that by using the dump command (f.e. with Symfony app/console
> doctrine:phpcr:node:dump /my/node).
> Or it can still be a bug inside Jackalope. In theory it can also be
> a bug inside Jackrabbit but that is more doubtful.
>
> Can you investigate this a bit more and open a ticket on the
> relevant repository?
>
> regards,
> Lukas
>
> --
> You received this message because you are subscribed to the Google
> Groups "Jackalope" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
jackalope-de...@googlegroups.com
> <mailto:
jackalope-de...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.
--
Liip AG // Agile Web Development // T
+41 43 500 39 80
CH-8005 Zurich // PGP 0xA581808B //
www.liip.ch