2017 © Pedro Peláez
 

library entity

Simple ORM

image

mheinzerling/entity

Simple ORM

  • Sunday, December 31, 2017
  • by mheinzerling
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Build Status Code Climate Test Coverage Issue Count, (*1)

mheinzerling/entity

Simple ORM, (*2)

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., (*3)

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, (*4)

The Versions