diff --git a/More/EAV/Value.php b/More/EAV/Value.php index 617afdc..127f8ce 100644 --- a/More/EAV/Value.php +++ b/More/EAV/Value.php @@ -28,12 +28,15 @@ class Value implements ValueInterface /** * @param Attribute $attribute + * @return $this */ public function setAttribute(Attribute $attribute) { $this->attribute->removeValue($this); // Remove value from current attribute $attribute->addValue($this); // Add value to new attribute $this->attribute = $attribute; + + return $this; } /**