PHP code example of artemeon / orm
1. Go to this page and download the library: Download artemeon/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/ */
artemeon / orm example snippets
#[TableName('agp_contracts_con')]
class TestModel extends TestParent
{
#[TablePrimary('contract_id')]
private string $contractId;
#[TableColumn('servicerid', DataType::STR_TYPE_CHAR20)]
private $strServicerId;
#[TableColumn('inhouseservice', DataType::STR_TYPE_INT)]
private $intInhouseService;
#[TableColumn('outsourcing_i', DataType::STR_TYPE_CHAR20)]
private ?string $outsourcingInstitution = null;
#[TableColumn('purchasing_relevance', DataType::STR_TYPE_INT)]
private ?int $purchasingRelevance = 0;
// getter/setter
}
#[TableName('agp_system')]
class TestParent implements EntityInterface
{
#[TablePrimary('system_id')]
private string $systemId;
#[TableColumn('owner', DataType::STR_TYPE_CHAR20)]
private ?string $owner = null;
// getter/setter
}