Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃挕 Embeddable Behaviors #473

Open
VinterDefoe opened this issue Mar 23, 2024 · 0 comments
Open

馃挕 Embeddable Behaviors #473

VinterDefoe opened this issue Mar 23, 2024 · 0 comments
Labels
type:feature New feature.

Comments

@VinterDefoe
Copy link

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;

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature.
Projects
Status: Todo
Development

No branches or pull requests

1 participant