Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
JoinColumn.php
Go to the documentation of this file.
1<?php
2
4
5use Attribute;
6
16#[Attribute(Attribute::TARGET_PROPERTY)]
17class JoinColumn extends Column {
18 public string $className;
19 public ?string $referencedColumnName;
20
21 public function __construct(string $name, string $className, ?string $referencedColumnName = null, ?bool $nullable = false, ?string $dbType = '') {
22 parent::__construct($name, $nullable, $dbType);
23 $this->className = $className;
24 $this->referencedColumnName = $referencedColumnName;
25 }
26}
__construct(string $name, string $className, ?string $referencedColumnName=null, ?bool $nullable=false, ?string $dbType='')