Skip to content
This repository was archived by the owner on May 1, 2019. It is now read-only.

Commit 8b6e4a6

Browse files
committed
ZfModule\Mapper\Module::findByOwner should not ignore $owner parameter
1 parent ec27d0f commit 8b6e4a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

module/ZfModule/src/ZfModule/Mapper/Module.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ public function findByLike($query, $limit = null, $orderBy = null, $sort = 'ASC'
8787
return $entity;
8888
}
8989

90-
/**
91-
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
92-
*/
9390
public function findByOwner($owner, $limit = null, $orderBy = null, $sort = 'ASC')
9491
{
9592
$select = $this->getSelect();
93+
if ($owner) {
94+
$select->where(['owner' => $owner]);
95+
}
9696

9797
if ($orderBy) {
9898
$select->order($orderBy . ' ' . $sort);

0 commit comments

Comments
 (0)