Hello,
What is the proper way to correctly create a major version change via PHP Library ?
We want to modify atributes and content of a document node and mark this change as major.
When we try to use $node->createVersion($description=null, $major=boolean) and then to modify and save node attributes (including its content, name, description etc.), then this scenario creates two versions - one created by createVersion() and second via $session->save() which goes after $node properties update.
On the other hand I don't see any way to tell Alfresco, that this is major document change without calling createVersion().
Please, what is the right way to do this, without generationg two versions ?
Could it be the solution to disable automatic versioning somehow, to call createVersion, then change attributes and call session->save - which would not generate new version ?
Thanks for any advice, we use Alfresco 3.4 d.
Radek