Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Dec 26, 2017
1 parent 656e312 commit 62d2986
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/models/V3toysProductContentElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class V3toysProductContentElement extends ShopCmsContentElement
*/
public function getV3toysProductProperty()
{
return $this->hasOne(V3toysProductProperty::className(), ['id' => 'id']);
return $this->hasOne(V3toysProductProperty::className(), ['id' => 'id'])->from(['v3property' => V3toysProductProperty::tableName()]);
}


Expand Down
3 changes: 2 additions & 1 deletion src/views/admin-order/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@
$purchasingPrice = 0;
$notFoundProducts = 0;
?>
<? foreach ($dataProvider->query->all() as $order) : ?>

<? foreach ($dataProvider->query->each(100) as $order) : ?>

<?
if ($order->products) {
Expand Down

0 comments on commit 62d2986

Please sign in to comment.