Phactory\Sql\Association\ManyToOne::getFromColumn PHP Method

getFromColumn() public method

public getFromColumn ( )
    public function getFromColumn()
    {
        return $this->_from_column;
    }

Usage Example

Beispiel #1
0
 public function testGuessFromColumn()
 {
     $assoc = new ManyToOne(new Table('user', true, $this->phactory));
     $assoc->setFromTable(new Table('post', true, $this->phactory));
     $this->assertEquals('user_id', $assoc->getFromColumn());
 }