src/Titon/Model/Relation/ManyToOne.php
public function link(Model $model) {
        $this->getLinked()->flush()->append($model);

        $this->getPrimaryModel()->set($this->getPrimaryForeignKey(), $model->id());

        return $this;
    }
public function link(Model $model) {
        $this->getLinked()->flush()->append($model);

        $this->getPrimaryModel()->set($this->getPrimaryForeignKey(), $model->id());

        return $this;
    }
public function link ( Model $ model ) { $ this -> getLinked ( ) -> flush ( ) -> append ( $ model ) ; $ this -> getPrimaryModel ( ) -> set ( $ this -> getPrimaryForeignKey ( ) , $ model -> id ( ) ) ; return $ this ; }
Only one record at a time can be linked in a belongs to relation.
Also include the ID from the foreign model as an attribute on the primary model.

@param \Titon\Model\Model $model
@return $this
Only one record at a time can be linked in a belongs to relation . Also include the ID from the foreign model as an attribute on the primary model .