Core v2.3, N:M Relations
This commit is contained in:
18
Core/Objects/DatabaseEntity/Attribute/Multiple.php
Normal file
18
Core/Objects/DatabaseEntity/Attribute/Multiple.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Core\Objects\DatabaseEntity\Attribute;
|
||||
|
||||
#[\Attribute(\Attribute::TARGET_PROPERTY)]
|
||||
class Multiple {
|
||||
|
||||
private string $className;
|
||||
|
||||
public function __construct(string $className) {
|
||||
$this->className = $className;
|
||||
}
|
||||
|
||||
public function getClassName(): string {
|
||||
return $this->className;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user