示例#1
0
 public function delete($entity, $where = null, $tableName = null, HydratorInterface $hydrator = null)
 {
     if (!$where) {
         $where = 'idoption = ' . $entity->getId();
     }
     return parent::delete($entity, $where, $tableName, $hydrator);
 }
 public function removeSerie($userId, $serieId)
 {
     $where = new Where();
     $where->equalTo('user_id', $userId);
     $where->equalTo('sid', $serieId);
     return parent::delete($where, $this->tableName);
 }
示例#3
0
 public function deleteEntity($id)
 {
     $result = parent::delete(array($this->idField => $id));
     if (!$result) {
         return false;
     }
     return true;
 }
示例#4
0
 public function deleteJobById($jobId)
 {
     return parent::delete(array('job_id' => $jobId));
 }
示例#5
0
 public function deletePpeById($ppeId)
 {
     return parent::delete(array('ppe_id' => $ppeId));
 }
示例#6
0
 public function deleteLocationById($locationId)
 {
     return parent::delete(array('location_id' => $locationId));
 }
示例#7
0
 public function deleteLogicalDisks($computerId)
 {
     return parent::delete(array('computer_id' => $computerId));
 }
 public function delete($userId, $postId)
 {
     return parent::delete(array('userId' => $userId, 'postId' => $postId))->getAffectedRows();
 }
示例#9
0
 public function deletePrivilegeById($id)
 {
     return parent::delete(array('privilege_id' => $id));
 }
示例#10
0
 public function deleteProjectPpes($projectId)
 {
     return parent::delete(array('project_id' => $projectId));
 }
示例#11
0
 public function deleteRuleById($ruleId)
 {
     return parent::delete(array('rule_id' => $ruleId));
 }
示例#12
0
 public function deleteUserProvider($ids)
 {
     return parent::delete(array('(user_id IN (' . $ids . '))'));
 }
示例#13
0
 public function deleteCustomerById($customerId)
 {
     return parent::delete(array('customer_id' => $customerId));
 }
示例#14
0
 public function deleteStaffById($staffId)
 {
     return parent::delete(array('staff_id' => $staffId));
 }
示例#15
0
 public function deleteUuid($uuid)
 {
     $where = ['uuid' => $uuid];
     $result = parent::delete($where, $this->tableName);
     return $result;
 }
示例#16
0
 public function deleteResourceById($id)
 {
     return parent::delete(array('resource_id' => $id));
 }
示例#17
0
 public function deleteRoleByRole($role)
 {
     parent::delete(array('role' => $role));
 }
 public function delete($entity, $where = null, $tableName = null)
 {
     if (!$where) {
         $where = 'module_id = ' . $entity->getId();
     }
     return parent::delete($where, $tableName);
 }
示例#19
0
 public function deleteSubstanceById($substanceId)
 {
     return parent::delete(array('substance_id' => $substanceId));
 }