PHP code example of baraja-core / doctrine
1. Go to this page and download the library: Download baraja-core/doctrine 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/ */
baraja-core / doctrine example snippets
declare(strict_types=1);
namespace Baraja\Doctrine\Entity;
use Doctrine\ORM\Mapping as ORM;
use Baraja\Doctrine\Identifier\IdentifierUnsigned;
#[ORM\Entity]
class DatabaseEntity
{
use IdentifierUnsigned; // ID trait for entity identifier.
// or use uuid:
// use UuidIdentifier; // UUID identifier trait
shell
php www/index.php o:s:u -f --dump-sql