File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
app/code/Magento/Catalog/Model/ResourceModel/Product Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class ChildCollectionFactory extends CollectionFactory
20
20
*/
21
21
public function create (array $ data = [])
22
22
{
23
- $ collection = $ this -> _objectManager -> create ($ this -> _instanceName , $ data );
23
+ $ collection = parent :: create ($ data );
24
24
$ collection ->setFlag ('product_children ' , true );
25
25
return $ collection ;
26
26
}
Original file line number Diff line number Diff line change @@ -17,14 +17,14 @@ class CollectionFactory
17
17
*
18
18
* @var \Magento\Framework\ObjectManagerInterface
19
19
*/
20
- protected $ _objectManager = null ;
20
+ private $ objectManager = null ;
21
21
22
22
/**
23
23
* Instance name to create
24
24
*
25
25
* @var string
26
26
*/
27
- protected $ _instanceName = null ;
27
+ private $ instanceName = null ;
28
28
29
29
/**
30
30
* Factory constructor
@@ -36,8 +36,8 @@ public function __construct(
36
36
\Magento \Framework \ObjectManagerInterface $ objectManager ,
37
37
$ instanceName = Collection::class
38
38
) {
39
- $ this ->_objectManager = $ objectManager ;
40
- $ this ->_instanceName = $ instanceName ;
39
+ $ this ->objectManager = $ objectManager ;
40
+ $ this ->instanceName = $ instanceName ;
41
41
}
42
42
43
43
/**
@@ -48,6 +48,6 @@ public function __construct(
48
48
*/
49
49
public function create (array $ data = [])
50
50
{
51
- return $ this ->_objectManager ->create ($ this ->_instanceName , $ data );
51
+ return $ this ->objectManager ->create ($ this ->instanceName , $ data );
52
52
}
53
53
}
You can’t perform that action at this time.
0 commit comments