public function getAllByPostType($type, array $queryVars = array())
    {
        $q = new WP_Query(array_merge(array(
            'post_type' => $type,
            'nopaging'  => true
        ), $queryVars));

        $posts = array();

        foreach ($q->get_posts() as $p) {
            $posts[] = $this->postFactory->create($p);
        }

        return $posts;
    }