7
7
namespace Magento \Catalog \Model \ResourceModel ;
8
8
9
9
use Magento \Eav \Model \Entity \Attribute \AbstractAttribute ;
10
+ use Magento \Eav \Model \Entity \Attribute \Backend \AbstractBackend ;
11
+ use Magento \Eav \Model \Entity \Attribute \Frontend \AbstractFrontend ;
12
+ use Magento \Eav \Model \Entity \Attribute \Source \AbstractSource ;
10
13
11
14
/**
12
15
* Catalog entity abstract model
@@ -86,16 +89,14 @@ protected function _isApplicableAttribute($object, $attribute)
86
89
/**
87
90
* Check whether attribute instance (attribute, backend, frontend or source) has method and applicable
88
91
*
89
- * @param AbstractAttribute|\Magento\Eav\Model\Entity\Attribute\Backend\AbstractBackend
90
- * |\Magento\Eav\Model\Entity\Attribute\Frontend\AbstractFrontend
91
- * |\Magento\Eav\Model\Entity\Attribute\Source\AbstractSource $instance
92
+ * @param AbstractAttribute|AbstractBackend|AbstractFrontend|AbstractSource $instance
92
93
* @param string $method
93
94
* @param array $args array of arguments
94
95
* @return boolean
95
96
*/
96
97
protected function _isCallableAttributeInstance ($ instance , $ method , $ args )
97
98
{
98
- if ($ instance instanceof \ Magento \ Eav \ Model \ Entity \ Attribute \ Backend \ AbstractBackend
99
+ if ($ instance instanceof AbstractBackend
99
100
&& ($ method == 'beforeSave ' || $ method == 'afterSave ' )
100
101
) {
101
102
$ attributeCode = $ instance ->getAttribute ()->getAttributeCode ();
@@ -112,6 +113,7 @@ protected function _isCallableAttributeInstance($instance, $method, $args)
112
113
113
114
/**
114
115
* Retrieve select object for loading entity attributes values
116
+ *
115
117
* Join attribute store value
116
118
*
117
119
* @param \Magento\Framework\DataObject $object
@@ -244,6 +246,7 @@ protected function _saveAttributeValue($object, $attribute, $value)
244
246
245
247
/**
246
248
* Check if attribute present for non default Store View.
249
+ *
247
250
* Prevent "delete" query locking in a case when nothing to delete
248
251
*
249
252
* @param AbstractAttribute $attribute
0 commit comments