| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace app\common\model;
- class ProductCategoryModel extends BaseModel
- {
- protected $table = 'erp_product_category';
- protected function genSchema(array $schema)
- {
- // TODO: Implement genSchema() method.
- }
- public function findAll() {
- return $this->where('is_delete', 0)->select();
- }
- public function doesItExist($name) {
- $customer = $this->where([
- ["name", '=', $name],
- ["is_delete", '=', 0]
- ])->find();
- return $customer ? true : false;
- }
- }
|