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());
}