src/Database/Model.php
public function data()
    {
        $data = array();
        foreach (array_keys(static::schema()) as $column) {
            if (isset($this->{$column})) {
                $data[$column] = $this->{$column};
            }
        }
        return $data;
    }
public function data()
    {
        $data = array();
        foreach (array_keys(static::schema()) as $column) {
            if (isset($this->{$column})) {
                $data[$column] = $this->{$column};
            }
        }
        return $data;
    }
public function data ( ) { $ data = array ( ) ; foreach ( array_keys ( static :: schema ( ) ) as $ column ) { if ( isset ( $ this -> { $ column } ) ) { $ data [ $ column ] = $ this -> { $ column } ; } } return $ data ; }
Gets the models data.

@return array
Gets the models data .