mirror of
https://github.com/doctrine/mongodb-odm.git
synced 2026-03-23 22:42:15 +01:00
- 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
20 lines
470 B
PHP
20 lines
470 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Doctrine\ODM\MongoDB\Mapping\Attribute\File;
|
|
|
|
use Attribute;
|
|
use Doctrine\ODM\MongoDB\Mapping\Attribute\AbstractField;
|
|
use Doctrine\ODM\MongoDB\Mapping\Attribute\MappingAttribute;
|
|
|
|
/** @final */
|
|
#[Attribute(Attribute::TARGET_PROPERTY)]
|
|
class UploadDate extends AbstractField implements MappingAttribute
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct('uploadDate', 'date', false, [], null, true);
|
|
}
|
|
}
|