Hello yuri
There is a mistake in documentation:
Instead of getRelation($acocunt there should be getRelation($account
Small, i know
There is a mistake in documentation:
$opportunityCollection = $entityManager ->getRepository('Account') ->getRelation($acocunt, 'opportunities') ->limit(0, 10) ->where($whereClause) ->find();
$opportunity = $entityManager ->getRepository('Account') ->getRelation($acocunt, 'opportunities') ->order('createdAt', 'DESC') ->findOne();
$opportunity = $entityManager ->getRepository('Account') ->getRelation($acocunt, 'opportunities') ->order('createdAt', 'DESC') ->findOne();
Small, i know
Comment