public function getFavouriteAccountsForUser(UserInterface $user)
    {
        $criteria = new Criteria();
        $criteria
            ->where($criteria->expr()->in(
                'id',
                $user->getMyFavouriteAccountIds()
            ))
        ;

        return $this->oh->getOrganization()
            ->getAccounts()
            ->matching($criteria)
        ;
    }
public function getFavouriteAccountsForUser(UserInterface $user)
    {
        $criteria = new Criteria();
        $criteria
            ->where($criteria->expr()->in(
                'id',
                $user->getMyFavouriteAccountIds()
            ))
        ;

        return $this->oh->getOrganization()
            ->getAccounts()
            ->matching($criteria)
        ;
    }
public function getFavouriteAccountsForUser ( UserInterface $ user ) { $ criteria = new Criteria ( ) ; $ criteria -> where ( $ criteria -> expr ( ) -> in ( 'id' , $ user -> getMyFavouriteAccountIds ( ) ) ) ; return $ this -> oh -> getOrganization ( ) -> getAccounts ( ) -> matching ( $ criteria ) ; }
Get a collection of favourite Accounts for User

@author Tom Haskins-Vaughan <tom@tomhv.uk>
@since  0.10.0

@return Collection
Get a collection of favourite Accounts for User