Removed a Useless if conditional from bind method
This commit is contained in:
parent
55ad4e9a6d
commit
2773e317ea
|
@ -119,9 +119,6 @@ public function foreign_value()
|
|||
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue