dbObject::delete PHP Method

delete() public method

Delete method. Works only if object primaryKey is defined
public delete ( ) : boolean
return boolean Indicates success. 0 or 1.
    public function delete()
    {
        if (empty($this->data[$this->primaryKey])) {
            return false;
        }
        $this->db->where($this->primaryKey, $this->data[$this->primaryKey]);
        return $this->db->delete($this->dbTable);
    }