-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #579 from magento-troll/MAGETWO-42369
[Merchant Beta][MX] Fix MAGETWO-42369 (Product->getProductLinks() with flat tables turned on)
- Loading branch information
Showing
7 changed files
with
84 additions
and
5 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
app/code/Magento/Catalog/Model/Product/Attribute/DefaultAttributes.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
/** | ||
* Copyright © 2015 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
namespace Magento\Catalog\Model\Product\Attribute; | ||
|
||
use Magento\Eav\Model\Resource\Attribute\DefaultEntityAttributes\ProviderInterface; | ||
|
||
/** | ||
* Product default attributes provider | ||
* | ||
* @codeCoverageIgnore | ||
*/ | ||
class DefaultAttributes implements ProviderInterface | ||
{ | ||
/** | ||
* Retrieve default entity static attributes | ||
* | ||
* @return string[] | ||
*/ | ||
public function getDefaultAttributes() | ||
{ | ||
return ['entity_id', 'attribute_set_id', 'type_id', 'created_at', 'updated_at', 'sku']; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
app/code/Magento/Eav/Model/Resource/Attribute/DefaultEntityAttributes/ProviderInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
/** | ||
* Copyright © 2015 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
namespace Magento\Eav\Model\Resource\Attribute\DefaultEntityAttributes; | ||
|
||
interface ProviderInterface | ||
{ | ||
/** | ||
* Retrieve default entity static attributes | ||
* | ||
* @return string[] | ||
*/ | ||
public function getDefaultAttributes(); | ||
} |