Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/arrilot/bitrix-models
Browse files Browse the repository at this point in the history
  • Loading branch information
arrilot committed May 10, 2018
2 parents 844c583 + b77d10d commit 5eb4b01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ class Product extends ElementModel

public function questions()
{
return $this->hasMany(ProductQuestion::class, 'ID', PROPERTY_PRODUCT_VALUE');
return $this->hasMany(ProductQuestion::class, 'ID', 'PROPERTY_PRODUCT_VALUE');
}
}
```
Expand Down
8 changes: 4 additions & 4 deletions src/Queries/BaseQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ abstract public function count();
*/
public function getList()
{
if ($this->queryShouldBeStopped) {
return new Collection();
}

if (!is_null($this->primaryModel)) {
// Запрос - подгрузка релейшена. Надо добавить filter
$this->filterByModels([$this->primaryModel]);
}

if ($this->queryShouldBeStopped) {
return new Collection();
}

$models = $this->loadModels();

Expand Down

0 comments on commit 5eb4b01

Please sign in to comment.