- WIP on attributes ; on testing phase
This commit is contained in:
1 parent
5295a335b3
commit
e6d0279c1a
44 files changed
+763
-142
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Ulmus\Attribute\Property;
|
||||
|
||||
use Ulmus\Attribute\Attribute;
|
||||
|
||||
#[\Attribute]
|
||||
class Join {
|
||||
public function __construct(
|
||||
public string $type,
|
||||
public null|string|\Stringable $key = null,
|
||||
public null|string|\Stringable $foreignKey = null,
|
||||
public null|string $entity = null,
|
||||
public null|string $alias = null,
|
||||
) {
|
||||
$this->key = Attribute::handleArrayField($this->key);
|
||||
$this->foreignKey = Attribute::handleArrayField($this->foreignKey);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user