public function getActiveById($id) { $builder =
$this->
getActiveQueryBuilder();
$builder->
andWhere('shop.id=:shopId'
);
$builder->
setParameter('shopId',
$id);
$shop =
$builder->
getQuery()->
getOneOrNullResult();
if ($shop !== null
) { $shop =
$this->
fixActive($shop);
} return $shop;
} /**
* @param int $id
*
* @return DetachedShop|null
*/
public function getById($id) {