show offers on user page

This commit is contained in:
Jannis Portmann 2021-05-08 17:03:25 +02:00
parent b5d7281d77
commit b3500b630a
3 changed files with 36 additions and 9 deletions

View file

@ -22,19 +22,16 @@ class OfferingRepository extends ServiceEntityRepository
// /**
// * @return Offering[] Returns an array of Offering objects
// */
/*
public function findByExampleField($value)
public function findByUser($user)
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->andWhere('o.byUser = :val')
->setParameter('val', $user)
->orderBy('o.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/
/*
public function findOneBySomeField($value): ?Offering