framework
framework copied to clipboard
[ORM][Entity] Add Assert or Validate
class User
{
#[\Assert\All(
new \Assert\NotNull,
new \Assert\Length(min: 6))
]
public string $name = '';
}