Feature: #83093 - Replace @cascade with @TYPO3\CMS\Extbase\Annotation\ORM\Cascade

See forge#83093

Description

As a successor to the @cascade annotation, the doctrine annotation @TYPO3\CMS\Extbase\Annotation\ORM\Cascade has been introduced.

Example:

/**
 * @TYPO3\CMS\Extbase\Annotation\ORM\Cascade("remove")
 */
public $property;

Doctrine annotations are actual defined classes, therefore you can also use the annotation with a use statement.

Example:

use TYPO3\CMS\Extbase\Annotation\ORM\Cascade;
/**
 * @Cascade("remove")
 */
public $property;

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;
/**
 * @Extbase\ORM\Cascade("remove")
 */
public $property;

Impact

In 9.x there is no actual impact. Both the simple @cascade and @TYPO3\CMS\Extbase\Annotation\ORM\Cascade can be used side by side. However, @cascade is deprecated in 9.x and will be removed in version 10.