PHP code example of sunnysideup / orm-extras
1. Go to this page and download the library: Download sunnysideup/orm-extras 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/ */
sunnysideup / orm-extras example snippets
$filterSafeArray = ArraMethods::filter_array([]);
$list = MyDataObject::get()->filter($filterSafeArray);
$sortByStatement = ArraMethods::create_sort_statement_from_id_array([44,222,434,22,]);
$sortedList = MyDataObject::get()->orderBy($sortByStatement);