public function getAllByPageId($pageId) { $criteria = new SelectCriteria($this->getDomain()); $criteria->setCriteria(Criterion::_eq($this->getDomain(), "pageId", $pageId)); $criteria->addTransformer(Transformer::_orderByMultiple(array(Transformer::createOrderBy($this->getDomain(), "position"), Transformer::createOrderBy(new PageColumn(), "position"), Transformer::createOrderBy(new PageComponent(), "position")))); return $criteria->toArray(); }