Feature: #83092 - Replace @transient with @TYPO3\CMS\Extbase\Annotation\ORM\Transient¶
See Issue #83092
As a successor to the
@transient annotation, the doctrine annotation
@TYPO3\CMS\Extbase\Annotation\ORM\Transient has been introduced.
/** * @TYPO3\CMS\Extbase\Annotation\ORM\Transient */ public $property;
Doctrine annotations are actual defined classes, therefore you can also use the annotation with a use statement.
/** * @Transient */ public $property;
Used annotations can also be aliased which the core will most likely be using a lot in the future.
use TYPO3\CMS\Extbase\Annotation as Extbase;
/** * @Extbase\ORM\Transient */ public $property;
In 9.x there is no actual impact. Both the simple
@TYPO3\CMS\Extbase\Annotation\ORM\Transient can be used side by side.
@transient is deprecated in 9.x and will be removed in version 10.