Removed a Useless if conditional from bind method
This commit is contained in:
@@ -119,9 +119,6 @@ class Belongs_To extends Relationship {
|
|||||||
|
|
||||||
public function bind($id)
|
public function bind($id)
|
||||||
{
|
{
|
||||||
if((int) $this->foreign_value() === (int) $id)
|
|
||||||
return $this->base;
|
|
||||||
|
|
||||||
$this->base->fill(array($this->foreign => $id))->save();
|
$this->base->fill(array($this->foreign => $id))->save();
|
||||||
|
|
||||||
return $this->base;
|
return $this->base;
|
||||||
|
|||||||
Reference in New Issue
Block a user