Download the PHP package marcojetson/freckle without Composer
On this page you can find all versions of the php package marcojetson/freckle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download marcojetson/freckle
More information about marcojetson/freckle
Files in marcojetson/freckle
Package freckle
Short Description A minimalistic ORM built on top of Doctrine DBAL and heavily inspired by Spot2
License BSD-3
Homepage https://github.com/marcojetson/freckle
Informations about the package freckle
Freckle
Freckle is an Object-Relational-Mapper built on top of Doctrine DBAL.
Freckle is inspired by Spot2.
Table of contents
- Installation
- Configuration
- Entities
- Definition
- Generation
- Data manipulation
- Insert
- Update
- Delete
- Retrieval
- Where operators
- Relations
- Definition
Installation
Install with Composer
Configuration
You can get a connection through the Freckle\Manager
class.
Entities
Entities must extend and implement the method.
Definition
Defining an entity requires a table name and its fields. Fields are defined by an array with mandatory positional parameters and optional named parameters.
Generation
Freckle is able to generate entities for you. Use to automatically generate mappings for your tables.
Data manipulation
Interact with your entities using a mapper. You can get a mapper using the previously created connection.
Insert
Update
Not sure if new entity or not? Then use .
Delete
Retrieval
Use to initialize a query
Where operators
Where operators can be appended to field when using or being executed as query methods.
- eq, equals, =
- not, !=
- gt, greaterThan, >
- gte, greaterThanOrEquals, >=
- lt, lessThan, <
- lte, lessThanOrEquals, <=
- like
Custom operators
Add your own operators extending .
Relations
Related entity retrieval is supported.
Definition
In the same fashion of fields, defining a relation consist in an array with mandatory positional parameters and optional named parameters.