Phactory\Sql\Association\ManyToMany::getFromJoinColumn PHP Method

getFromJoinColumn() public method

public getFromJoinColumn ( )
    public function getFromJoinColumn()
    {
        return $this->_from_join_column;
    }

Usage Example

Beispiel #1
0
 public function testGuessFromColumn()
 {
     $assoc = new ManyToMany(new Table('image', true, $this->phactory), new Table('users_images', false, $this->phactory));
     $assoc->setFromTable(new Table('user', true, $this->phactory));
     $this->assertEquals('id', $assoc->getFromColumn());
     $this->assertEquals('user_id', $assoc->getFromJoinColumn());
     $this->assertEquals('image_id', $assoc->getToJoinColumn());
     $this->assertEquals('id', $assoc->getToColumn());
 }