system/Database/Query/QueryBuilder.php
/**
     * Check if the current table has soft deletes enabled
     *
     * @return boolean
     */
Check if the current table has soft deletes enabled
@return boolean
Check if the current table has soft deletes enabled @return boolean
protected function isSoftDeletes()
    {
        $stmt = $this->db->prepare("DESCRIBE {$this->tableName}");
        $stmt->execute();
        $columns = array();
        $stmt->setFetchMode(PDO::FETCH_ASSOC);
        while($row = $stmt->fetch()){
            $columns[] = $row['Field'];
        }
        if(in_array('deleted_at', $columns))
        {
            return true;
        }
        return false;
    }
protected function isSoftDeletes ( ) { $ stmt = $ this -> db -> prepare ( " DESCRIBE  { $ this -> tableName } " ) ; $ stmt -> execute ( ) ; $ columns = array ( ) ; $ stmt -> setFetchMode ( PDO :: FETCH_ASSOC ) ; while ( $ row = $ stmt -> fetch ( ) ) { $ columns [ ] = $ row [ 'Field' ] ; } if ( in_array ( 'deleted_at' , $ columns ) ) { return true ; } return false ; }
Check if the current table has soft deletes enabled
 @return boolean
Check if the current table has soft deletes enabled @return boolean