summaryrefslogtreecommitdiffstats
path: root/vendor/ipl/orm/src/Relation/Junction.php
blob: 1f676c414de5fb3fd7aa1b72f19a3841404d7735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php

namespace ipl\Orm\Relation;

use ipl\Orm\Model;

/**
 * Junction model for many-to-many relations
 */
class Junction extends Model
{
    /** @var string */
    protected $tableName;

    public function getTableName()
    {
        return $this->tableName;
    }

    /**
     * Set the table name
     *
     * @param string $tableName
     *
     * @return $this
     */
    public function setTableName($tableName)
    {
        $this->tableName = $tableName;

        return $this;
    }

    public function getKeyName()
    {
        return [];
    }

    public function getColumns()
    {
        return [];
    }
}