public function deleteListRow($row_id) { ProductAttributes::whereRaw('id = ?', array($row_id))->delete(); # Delete all attribute options related to the deleted attribute $this->deleteListRowChild($row_id); return true; }
public function isAttributeExists($attribute_id) { $attribute_count = ProductAttributes::whereRaw('id = ?', array($attribute_id))->count(); return $attribute_count; }