Exemplo n.º 1
0
 $attribute->delete();
 $attributeAv = Thelia\Model\AttributeAvQuery::create()->find();
 $attributeAv->delete();
 $attributeAv = Thelia\Model\AttributeAvI18nQuery::create()->find();
 $attributeAv->delete();
 $category = Thelia\Model\CategoryQuery::create()->find();
 $category->delete();
 $category = Thelia\Model\CategoryI18nQuery::create()->find();
 $category->delete();
 $product = Thelia\Model\ProductQuery::create()->find();
 $product->delete();
 $product = Thelia\Model\ProductI18nQuery::create()->find();
 $product->delete();
 $customer = Thelia\Model\CustomerQuery::create()->find();
 $customer->delete();
 $admin = Thelia\Model\AdminQuery::create()->find();
 $admin->delete();
 $folder = Thelia\Model\FolderQuery::create()->find();
 $folder->delete();
 $folder = Thelia\Model\FolderI18nQuery::create()->find();
 $folder->delete();
 $content = Thelia\Model\ContentQuery::create()->find();
 $content->delete();
 $content = Thelia\Model\ContentI18nQuery::create()->find();
 $content->delete();
 $accessory = Thelia\Model\AccessoryQuery::create()->find();
 $accessory->delete();
 $stock = \Thelia\Model\ProductSaleElementsQuery::create()->find();
 $stock->delete();
 $productPrice = \Thelia\Model\ProductPriceQuery::create()->find();
 $productPrice->delete();
Exemplo n.º 2
0
 /**
  * Returns a new ChildAdminQuery object.
  *
  * @param     string $modelAlias The alias of a model in the query
  * @param     Criteria $criteria Optional Criteria to build the query from
  *
  * @return ChildAdminQuery
  */
 public static function create($modelAlias = null, $criteria = null)
 {
     if ($criteria instanceof \Thelia\Model\AdminQuery) {
         return $criteria;
     }
     $query = new \Thelia\Model\AdminQuery();
     if (null !== $modelAlias) {
         $query->setModelAlias($modelAlias);
     }
     if ($criteria instanceof Criteria) {
         $query->mergeWith($criteria);
     }
     return $query;
 }