[SOLVED] Flow entity => ignore property

Let’s asume having the following Entity:

/**
 * @Flow\Entity
 */
class Dummy
{

    /**
     * @var int
     */
    protected $a;

    /**
     * @var string
     * @Flow\IGNORETHIS???
     */
    protected $b;
}

I do not want to have the property “b” as a column in the database. While searching, I found that you simply should not add an annotation using Doctrine. But I want to set “b” as e.g. “string”.
I couldn’t find anything in the flow docs - but I think that I simply don’t have the right terms here to make a successful search.

Could you please help me here at this point? Thanks a lot!

Hi Tob

You’re looking for @Flow\Transient which does exactly what you want. While it is documented here, it would also be unclear to me due to the lack of an example.

/**
 * @Flow\Entity
 */
class Dummy
{

    /**
     * @var int
     */
    protected $a;

    /**
     * @var string
     * @Flow\Transient
     */
    protected $b;
}

Perfect - thank you very much for your great prompt help!!