*/ class TeaRepository extends Repository { use StoragePageAgnosticTrait; protected $defaultOrderings = ['title' => QueryInterface::ORDER_ASCENDING]; /** * @param positive-int $ownerUid */ public function findByOwnerUid(int $ownerUid): QueryResultInterface { $query = $this->createQuery(); $query->matching($query->equals('ownerUid', $ownerUid)); return $query->execute(); } }