mheinzerling / entity
Simple ORM
3.0.0
2017-01-01 09:27 UTC
Requires
- php: ^7.1.0
- eloquent/enumeration: ^5.1.0
- mheinzerling/databaseutils: ^3.0.0
- mheinzerling/fileutils: ^3.0.0
- mheinzerling/jsonutils: ^3.0.0
- mheinzerling/meta: ^1.0.0
- mheinzerling/stringutils: ^3.0.0
- symfony/console: ^3.1.0
Requires (Dev)
- codeclimate/php-test-reporter: dev-master
- phpunit/phpunit: ^5.6.0
This package is not auto-updated.
Last update: 2025-02-01 22:08:33 UTC
README
#mheinzerling/entity
Simple ORM
##Composer "require": { "mheinzerling/entity": "^3.0.1" },
##Types
Integer -> INT (length)
String
length<255 -> VARCHAR
-> TEXT
\DateTime -> DATETIME
Boolean -> INT (1)
Entity -> INT(11)
optional -> NULL vs NOT NULL
auto -> AUTO_INCREMENT
primary -> default
##Example
See resources/tests/entities.json
and build.xml gen
. The parser will tell you invalid configurations.
##Changelog
3.0.0
- update to PHP 7.1
2.0.0
- update to PHP 7
- update enumeration library and symphony console
- !!! PDO toObject seems to change in 7.1; Test broken !!!
1.2.0
- update dependencies
- add foreign keys
1.1.0
- improve enums
- add double
- improve datetime mapping
1.0.0
initial version