- Added a new @PrimaryKey annotation to replace the too-specific property-wise @Id

This commit is contained in:
Dave Mc Nicoll committed 2022-11-11 13:57:29 +00:00
1 parent 0e8443b1c1
commit b20e537038
6 files changed
+33 -19

No files matched your search

+2 -4
View File
@@ -2,15 +2,13 @@
namespace Ulmus\Annotation\Property\Field;
class Id extends \Ulmus\Annotation\Property\Field {
class Id extends \Ulmus\Annotation\Property\Field\PrimaryKey {
public function __construct()
{
$this->nullable = false;
$this->attributes['unsigned'] = true;
$this->attributes['primary_key'] = true;
$this->attributes['auto_increment'] = true;
parent::__construct('bigint');
}