Skip to content

馃挕 Embeddable Behaviors聽#473

Description

@VinterDefoe

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;

}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    • Status
      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions