Closed roxblnfk closed 1 year ago
Auto-generated columns don't have the same attributes like in the related source column
see https://discord.com/channels/538114875570913290/988308945045180436/1074709906017501325
#[Cycle\Entity(table: 'country')] class Country { #[Cycle\Column(type: 'primary' /*, unsigned: true*/)] private ?int $id = null; }
#[Cycle\Entity(table: 'city')] class City { #[Cycle\Column(type: 'primary')] private ?int $id = null; #[Cycle\Relation\BelongsTo(target: Country::class, nullable: true)] private ?Country $country = null; }
This issue is related to the bug in the cycle/database. PR: https://github.com/cycle/database/pull/105
Auto-generated columns don't have the same attributes like in the related source column
see https://discord.com/channels/538114875570913290/988308945045180436/1074709906017501325