I have an idea!
Idea, to add ability to have Behaviors for Embeddable
#[Embeddable]
#[Behavior\CreatedAt(column: 'created_at')]
#[Behavior\UpdatedAt(column: 'updated_at')]
#[Behavior\SoftDelete(column: 'deleted_at')]
class UserTimestamps
{
#[Column(type: 'datetime')]
public \DateTimeImmutable $createdAt;
#[Column(type: 'datetime')]
public \DateTimeImmutable $updatedAt;
#[Column(type: 'datetime', nullable: true)]
public ?\DateTimeImmutable $deletedAt;
}
I have an idea!
Idea, to add ability to have Behaviors for Embeddable