Create object

Source

<?php
    $customer = new \customer();
    $customer->id = null;
    $customer->username = 'Tester';
    $customer->password = MD5(MD5('system12'));
    $customer->email = 'barebone@it-api.nl';
    $customer->created = date('Y-m-d');
    $customer->save();

Result

Database\Barebone_me\Activerecords\customer Object
(
    [tablename:protected] => customer
    [primary_key:Barebone\Activerecord:private] => id
    [pdo:Barebone\Activerecord:private] => Barebone\Database\Connectors\PDO Object
        (
        )

    [debug:protected] => 
    [joins:protected] => Array
        (
        )

    [selected_columns:protected] => Array
        (
        )

    [id] => 19
    [username] => Tester
    [password] => dbc7d377658c9557eedc87a5af0d1318
    [email] => barebone@it-api.nl
    [created] => 2026-08-19
)