src/PicORM/Model.php
public function toArray($includePrimary = true)
    {
        if ($includePrimary) {
            $array = array(static::$_primaryKey => $this->{static::$_primaryKey});
        } else {
            $array = array();
        }

        foreach (static::$_tableFields as $unChamp) {
            $array[$unChamp] = $this->{$unChamp};
        }

        return $array;
    }
public function toArray($includePrimary = true)
    {
        if ($includePrimary) {
            $array = array(static::$_primaryKey => $this->{static::$_primaryKey});
        } else {
            $array = array();
        }

        foreach (static::$_tableFields as $unChamp) {
            $array[$unChamp] = $this->{$unChamp};
        }

        return $array;
    }
Return model data in an array

@param bool $includePrimary - Include or not primary key in returned array

@return array