Commit 2773e317 authored by kapil verma's avatar kapil verma

Removed a Useless if conditional from bind method

parent 55ad4e9a
......@@ -119,9 +119,6 @@ class Belongs_To extends Relationship {
public function bind($id)
{
if((int) $this->foreign_value() === (int) $id)
return $this->base;
$this->base->fill(array($this->foreign => $id))->save();
return $this->base;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment