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