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

💡 Add options set for auto-generated column values #461

Closed
roxblnfk opened this issue Feb 2, 2024 · 0 comments · Fixed by #462
Closed

💡 Add options set for auto-generated column values #461

roxblnfk opened this issue Feb 2, 2024 · 0 comments · Fixed by #462
Assignees
Labels
type:feature New feature.

Comments

@roxblnfk
Copy link
Member

roxblnfk commented Feb 2, 2024

I have an idea!

Currently, the ORM does not know which values need to be obtained during insertion, whether the PK is auto-generated (auto-increment), whether there are fields defined as serial in the database, or whether there are fields generated on the PHP side before insertion/update into the database (UUID, CreatedAt, UpdatedAt behaviors).

It is necessary to add a directive to the schema that will list the fields that are automatically generated. This will help to resolve the following issues:
#321
cycle/database#156 (comment)
https://discord.com/channels/538114875570913290/1200704658063233034

@roxblnfk roxblnfk added the type:feature New feature. label Feb 2, 2024
@roxblnfk roxblnfk self-assigned this Feb 2, 2024
@roxblnfk roxblnfk added this to Cycle Feb 2, 2024
@roxblnfk roxblnfk moved this to In Progress in Cycle Feb 2, 2024
@roxblnfk roxblnfk mentioned this issue Feb 2, 2024
7 tasks
@github-project-automation github-project-automation bot moved this from In Progress to Done in Cycle Feb 8, 2024
@roxblnfk roxblnfk moved this from Done to Released in Cycle Feb 28, 2024
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: Released
Development

Successfully merging a pull request may close this issue.

1 participant