NMRelation cleanup / improvement
This commit is contained in:
@@ -2,6 +2,15 @@
|
||||
|
||||
namespace Core\Objects\DatabaseEntity\Attribute;
|
||||
|
||||
#[\Attribute(\Attribute::TARGET_PROPERTY)] class Unique {
|
||||
#[\Attribute(\Attribute::TARGET_PROPERTY|\Attribute::TARGET_CLASS)] class Unique {
|
||||
|
||||
private array $columns;
|
||||
|
||||
public function __construct(string ...$columns) {
|
||||
$this->columns = $columns;
|
||||
}
|
||||
|
||||
public function getColumns(): array {
|
||||
return $this->columns;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user