-
-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
status:to be verifiedNeeds to be reproduced and validated.Needs to be reproduced and validated.type:bugBugBug
Description
No duplicates 🥲.
- I have searched for a similar issue in our bug tracker and didn't find any solutions.
What happened?
Using example from this link: https://cycle-orm.dev/docs/entity-behaviors-optimistic-lock
#[Entity]
#[OptimisticLock(
field: 'version', // Required. By default 'version'
column: 'version', // Optional. By default 'null'. If not set, will be used information from property declaration.
rule: OptimisticLock::RULE_INCREMENT // Optional. By default OptimisticLock::RULE_INCREMENT
)]
class Page
{
#[Column(type: 'primary')]
private int $id;
#[Column(type: 'integer')]
private int $version;
}
During schema generation an error was received:
In RegistryModifier.php line 61: Field version must be of type integer
If remove attribute #[Column(type: 'integer')] - then works.
Version
entity-behavior v1.1.1
orm v2.2.1,
PHP 8.1
Reactions are currently unavailable
Metadata
Metadata
Labels
status:to be verifiedNeeds to be reproduced and validated.Needs to be reproduced and validated.type:bugBugBug
Type
Projects
Status
Released