DB.PHP - PHP ORM

Save mixed object array to table

array $database->save (array $objects [, integer $action=null])

Example:

$objects = $database->save (array (
                            new product ('Apple'),
                            new user ('John'),
                            new currency ('Dollar')));

Will return saved objects.