Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Returns all enabled products
- *
- * @return array
- */
- public function getProducts()
- {
- $criteria = Criteria::create()
- ->where(Criteria::expr()->eq("status", true))
- ->orderBy(array("weight" => Criteria::ASC));
- return $this->products->matching($criteria);
- }
Advertisement
Add Comment
Please, Sign In to add comment