* compatible with that of model::delete().

This commit is contained in:
xia0ta0
2013-07-24 10:50:11 +08:00
parent 922c7edf3f
commit ac1b8095b2
+2 -1
View File
@@ -298,10 +298,11 @@ class deptModel extends model
* Delete a department.
*
* @param int $deptID
* @param null $null compatible with that of model::delete()
* @access public
* @return void
*/
public function delete($deptID)
public function delete($deptID, $null = null)
{
$this->dao->delete()->from(TABLE_DEPT)->where('id')->eq($deptID)->exec();
}