nomess / orm
There is no license information available for the latest version (1.0.8) of this package.
Orm for nomess
1.0.8
2020-10-18 19:44 UTC
Requires
- ext-json: *
- ext-pdo: *
- nomess/cache: *
- nomess/cli: *
- nomess/config: *
- nomess/parser: *
This package is not auto-updated.
Last update: 2025-03-31 17:00:35 UTC
README
nomess / orm is a very powerful orm requiring little configuration.
!!! This project is no longer maintained
It supports Mysql and PostgreSql.
Methods:
find($classname : string, $idOrSql : int|string|null, $parameters = [] : array): object|array|null
use Nomess\Component\Orm\EntityManagerInterface; $entityManager = new EntityManager(...) // On select all $samples = $entityManager->find(Sample::class); // Select one $sample = $entityManager->find(Sample::class, 1); // Select with Sql $samples = $entityManager->find(Sample::class, 'username = :username', [ 'username' => 'nomess' ]);