Closed PawelSuwinski closed 2 years ago
DateTime type is resolved to Doctrine ORM date type by attribute generator, what I think is a bit unexpected (?).
DateTime
date
# config/schema.yaml (...) createdAt: range: "https://schema.org/DateTime"
gives:
(...) #[ORM\Column(type: 'date', nullable: true)] #[Assert\Type(\DateTimeInterface::class)] private ?\DateTimeInterface $createdAt = null;
instead:
#[ORM\Column(type: 'datetime', nullable: true)] #[Assert\Type(\DateTimeInterface::class)] private ?\DateTimeInterface $createdAt = null;
Thanks @PawelSuwinski.
DateTime
type is resolved to Doctrine ORMdate
type by attribute generator, what I think is a bit unexpected (?).gives:
instead: