Files
archived-mongodb-odm/src/Mapping/Annotations/File/Filename.php
Jérôme Tamarelle c14f76775d Change namespace of attribute classes from Annotations to Attribute (#2933)
- Move the classes from Doctrine\ODM\MongoDB\Mapping\Annotations to Doctrine\ODM\MongoDB\Mapping\Attribute. Removing the @Annotation so that they can't be used for legacy annotations.
- For the classes in the Annotations namespace, they extend those from the Attribute namespace. Adding the legacy @Annotation for BC.
- The EncryptQuery enum is moved to the parent Doctrine\ODM\MongoDB\Mapping namespace
- The abstract annotation classes are aliased to the new abstract attribute classes, so that it's not breaking type comparison
- Documentation updated
2025-12-16 18:12:17 +01:00

22 lines
562 B
PHP

<?php
declare(strict_types=1);
namespace Doctrine\ODM\MongoDB\Mapping\Annotations\File;
use Attribute;
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;
use Doctrine\ODM\MongoDB\Mapping\Annotations\Annotation;
use Doctrine\ODM\MongoDB\Mapping\Attribute\File\Filename as FilenameAttribute;
/**
* @deprecated Use \Doctrine\ODM\MongoDB\Mapping\Attribute\File\Filename instead
*
* @Annotation
* @NamedArgumentConstructor
*/
#[Attribute(Attribute::TARGET_PROPERTY)]
final class Filename extends FilenameAttribute implements Annotation
{
}