AP
Size: a a a
AP
AP
A
A
MP
ДК
VY
return PackageType::find($typeId)->packages()->attach($packageId);
AP
VY
AP
AP
VY
ДК
AP
VY
Gt
#[https://wiki.php.net/rfc/shorter_attribute_syntax_change
ORM\Entity,
ORM\Table("user")
]
class User
{
#[ORM\Id, ORM\Column("integer"), ORM\GeneratedValue]
private $id;
#[ORM\Column("string", ORM\Column::UNIQUE)]
#[Assert\Email(["message" => "The email '{{ value }}' is not a valid email."])]
private $email;
}
AP
AP