コード例 #1
0
 public function getPackProducts()
 {
     return sfPlopShopProductQuery::create()->usesfPlopShopProductPackRelatedByProductIdQuery()->filterByPackId($this->getId())->endUse()->find();
 }
コード例 #2
0
 public static function isValid($id)
 {
     return sfPlopShopProductQuery::create()->getValid()->filterById($id)->findOne() ? true : false;
 }
コード例 #3
0
 /**
  * @see getsfPlopShopCartProducts()
  */
 public function getProducts()
 {
     return sfPlopShopProductQuery::create()->usesfPlopShopCartProductQuery()->filterByCartId($this->getId())->endUse()->find();
 }