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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embeddable Behaviors #1094

Closed
VinterDefoe opened this issue Mar 23, 2024 · 2 comments
Closed

Embeddable Behaviors #1094

VinterDefoe opened this issue Mar 23, 2024 · 2 comments
Labels

Comments

@VinterDefoe
Copy link

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;

}
@roxblnfk
Copy link
Member

Hi. I think that issue should be opened in https://github.com/cycle/orm

@VinterDefoe
Copy link
Author

open in: cycle/orm#473

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants