protected function clearDynamic(array &$data)
    {
        if (!$this->schema->dynamic) {
            $data = array_intersect_key($data, $this->schema->fields);
        }
    }
protected function clearDynamic(array &$data)
    {
        if (!$this->schema->dynamic) {
            $data = array_intersect_key($data, $this->schema->fields);
        }
    }
protected function clearDynamic ( array & $ data ) { if ( ! $ this -> schema -> dynamic ) { $ data = array_intersect_key ( $ data , $ this -> schema -> fields ) ; } }
If the schema is not dynamic, remove all non specified fields.

@param array $data Reference of the fields. The passed array will be modified.
If the schema is not dynamic remove all non specified fields .