1. Go to this page and download the library: Download jpi/orm library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// Get orders without relationships
$orders = Order::newQuery()->where("status", "=", "completed")->select();
// Later, load relationships on the collection
$orders->load("customer");
// Or load multiple relationships
$orders->load("customer", "items");
// Nested relationships work too
$orders->load("customer.address");
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.