Phactory\Sql\Phactory::oneToOne PHP Метод

oneToOne() публичный Метод

* Create a one-to-one association object for use in define().
public oneToOne ( $to_table, $from_column, $to_column = null )
$to_table the table to associate with
$from_column the fk column on the left table
$to_column the pk column of the right table, or null to autodetect
    public function oneToOne($to_table, $from_column, $to_column = null)
    {
        $to_table = new Table($to_table, true, $this);
        return new Association\OneToOne($to_table, $from_column, $to_column);
    }