public function getByAncestor(AncestorCriteriaInterface $ancestor)
    {
        $this->model = $ancestor->apply($this->model, $this);
        $results = $this->model->get();
        $this->resetModel();

        return $this->parserResult($results);
    }
public function getByAncestor(AncestorCriteriaInterface $ancestor)
    {
        $this->model = $ancestor->apply($this->model, $this);
        $results = $this->model->get();
        $this->resetModel();

        return $this->parserResult($results);
    }
public function getByAncestor ( AncestorCriteriaInterface $ ancestor ) { $ this -> model = $ ancestor -> apply ( $ this -> model , $ this ) ; $ results = $ this -> model -> get ( ) ; $ this -> resetModel ( ) ; return $ this -> parserResult ( $ results ) ; }
Find data by Ancestor

@param AncestorCriteriaInterface $ancestor

@return mixed
Find data by Ancestor