Lazer\Classes\Core_Relation::belongsTo PHP Method

belongsTo() public method

Set relation one2many to table
public belongsTo ( string $table ) : Core_Relation
$table string Table name
return Core_Relation
    public function belongsTo($table)
    {
        $this->setTable('foreign', $table);
        $this->setRelationType(__FUNCTION__);
        return $this;
    }