src/Titon/Db/Repository.php
public function filterData(Event $event, Query $query, $id, array &$data) {
        if ($columns = $this->getSchema()->getColumns()) {
            $data = array_intersect_key($data, $columns);
        }

        return true;
    }
public function filterData(Event $event, Query $query, $id, array &$data) {
        if ($columns = $this->getSchema()->getColumns()) {
            $data = array_intersect_key($data, $columns);
        }

        return true;
    }
public function filterData ( Event $ event , Query $ query , $ id , array & $ data ) { if ( $ columns = $ this -> getSchema ( ) -> getColumns ( ) ) { $ data = array_intersect_key ( $ data , $ columns ) ; } return true ; }
Filter out invalid columns before a save operation.

@param \Titon\Event\Event $event
@param \Titon\Db\Query $query
@param int|int[] $id
@param array $data
@return bool
Filter out invalid columns before a save operation .