| 1 |
<?php |
| 2 |
|
| 3 |
namespace ipl\Orm\Relation; |
| 4 |
|
| 5 |
use ipl\Orm\Model; |
| 6 |
|
| 7 |
/** |
| 8 |
* Junction model for many-to-many relations |
| 9 |
*/ |
| 10 |
class Junction extends Model |
| 11 |
{ |
| 12 |
/** @var string */ |
| 13 |
protected $tableName; |
| 14 |
|
| 15 |
public function getTableName() |
| 16 |
{ |
| 17 |
return $this->tableName; |
| 18 |
} |
| 19 |
|
| 20 |
/** |
| 21 |
* Set the table name |
| 22 |
* |
| 23 |
* @param string $tableName |
| 24 |
* |
| 25 |
* @return $this |
| 26 |
*/ |
| 27 |
public function setTableName($tableName) |
| 28 |
{ |
| 29 |
$this->tableName = $tableName; |
| 30 |
|
| 31 |
return $this; |
| 32 |
} |
| 33 |
|
| 34 |
public function getKeyName() |
| 35 |
{ |
| 36 |
return []; |
| 37 |
} |
| 38 |
|
| 39 |
public function getColumns() |
| 40 |
{ |
| 41 |
return []; |
| 42 |
} |
| 43 |
} |