Declares a semantic link between two {@see SemanticObject}s.
Applied to a property of a model that itself represents a SemanticObject, this attribute marks a reference (arc) to another semantic object.
The link enables the SDK and UI to automatically:
use LaravelUi5\Core\Attributes\SemanticLink;
class Project extends Model
{
#[SemanticLink(model: \Ui5\Partners\Models\Partner::class)]
public string $partner_id;
}
| Methods | ||
|---|---|---|
public
|
__construct(string|null $model = null)
|
# |
| Properties | |||
|---|---|---|---|
public
|
string|null
|
$model
|
# |