private function searchUsers()
    {
        $criteria = Criteria::create()
            ->where(Criteria::expr()->lte(
                $this->classMetadata->getPropertyName(ClassMetadata::LAST_ACTION_PROPERTY),
                new \DateTime($this->dateTimeRule))
            )
            ->andWhere(
                Criteria::expr()->neq(
                    $this->classMetadata->getPropertyName(ClassMetadata::API_KEY_PROPERTY),
                    null
                )
            );

        return $this->getUsersByCriteria($criteria);
    }
private function searchUsers()
    {
        $criteria = Criteria::create()
            ->where(Criteria::expr()->lte(
                $this->classMetadata->getPropertyName(ClassMetadata::LAST_ACTION_PROPERTY),
                new \DateTime($this->dateTimeRule))
            )
            ->andWhere(
                Criteria::expr()->neq(
                    $this->classMetadata->getPropertyName(ClassMetadata::API_KEY_PROPERTY),
                    null
                )
            );

        return $this->getUsersByCriteria($criteria);
    }
private function searchUsers ( ) { $ criteria = Criteria :: create ( ) -> where ( Criteria :: expr ( ) -> lte ( $ this -> classMetadata -> getPropertyName ( ClassMetadata :: LAST_ACTION_PROPERTY ) , new \ DateTime ( $ this -> dateTimeRule ) ) ) -> andWhere ( Criteria :: expr ( ) -> neq ( $ this -> classMetadata -> getPropertyName ( ClassMetadata :: API_KEY_PROPERTY ) , null ) ) ; return $ this -> getUsersByCriteria ( $ criteria ) ; }
Search query for users with outdated api keys.

@return object[]
Search query for users with outdated api keys .