show offers on user page
This commit is contained in:
parent
b5d7281d77
commit
b3500b630a
3 changed files with 36 additions and 9 deletions
|
@ -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
|
||||
|
|
Reference in a new issue