private function cleanQueries(User $user)
    {
        foreach ($user->getQueries() as $userQuery) {
            $this->objectManager->remove($userQuery);
        }

        $user->getQueries()->clear();
    }
private function cleanQueries(User $user)
    {
        foreach ($user->getQueries() as $userQuery) {
            $this->objectManager->remove($userQuery);
        }

        $user->getQueries()->clear();
    }
private function cleanQueries ( User $ user ) { foreach ( $ user -> getQueries ( ) as $ userQuery ) { $ this -> objectManager -> remove ( $ userQuery ) ; } $ user -> getQueries ( ) -> clear ( ) ; }
Removes user queries.

@param User $user
Removes user queries .