Ok, sorry, I've created a little bit of confusion now myself, it seems I removed the third defintion
during the time I tried to find workaround.
I now added it back, and ... it doesn't generate the line for it.
But for some reason I now tried to test what happens if remove @Gedmo annotations alltogether from PHP. And unbelievable ... it generated both definitions.
So, when the existing PHP looks like this:
/**
* @ORM\Column(type="datetime", nullable=false)
* @Gedmo\Timestampable(on="change", field="status")
*
*
*/
private $statusTime;
... Skipper does not generate the on="create" annotation (and says that file was not changed).
But when the PHP code looks like this before generation:
/**
* @ORM\Column(type="datetime", nullable=false)
*/
private $statusTime;
It exports it as it should:
/**
* @ORM\Column(type="datetime", nullable=false)
* @Gedmo\Timestampable(on="change", field="status")
* @Gedmo\Timestampable(on="create")
*/
private $statusTime;
BUT on the next generation (initiated immediately after previous one) it removes the on="create" annotation, giving me this:
/**
* @ORM\Column(type="datetime", nullable=false)
* @Gedmo\Timestampable(on="change", field="status")
*
*/
private $statusTime;
And it stays like this on subsequent generations.
So, my initial report was for actual problem, but I messed up with pic/xml. Sorry about that.
These last tests done with:
And:
<?xml version="1.0"?>
<skipper-clipboard>
<entity name="SomeBundle\Entity\Issue" local-name="Issue" namespace="SomeBundle\Entity" size-x="0" size-y="0" size-x2="125" size-y2="255" position-x="143" position-y="19" hdr-color="#D2D2D2" bg-color="#FFFFFF">
<field name="id" type="integer" required="true" unique="true" primary="true" auto-increment="true">
<orm-attributes>
<attribute name="generator">
<attribute name="strategy">IDENTITY</attribute>
</attribute>
</orm-attributes>
</field>
<field name="createdTime" type="datetime" required="true"/>
<field name="statusTime" type="datetime" required="true"/>
<field name="status" type="text" required="true"/>
<orm-attributes>
<attribute name="table">issues</attribute>
<attribute name="Gedmo">
<attribute name="Timestampable">
<attribute name="Fields">
<attribute name="Field">
<attribute name="On">create</attribute>
<attribute name="Name">createdTime</attribute>
</attribute>
<attribute name="Field">
<attribute name="Name">statusTime</attribute>
<attribute name="Field">status</attribute>
<attribute name="On">change</attribute>
</attribute>
<attribute name="Field">
<attribute name="Name">statusTime</attribute>
<attribute name="On">create</attribute>
</attribute>
</attribute>
</attribute>
</attribute>
<attribute name="change-tracking-policy">DEFERRED_EXPLICIT</attribute>
</orm-attributes>
</entity>
</skipper-clipboard>