Fix datetime comparison in relative datetime functions.
Closes #2987,#3514
Adding a very sketchy version of find('all') at table level
Adding defaultTypes method to Database\Query to ease some tasks in the
ORM
Merge branch '3.0' into 3.0-model
Implementing auto casting from correct type for fields in schema when
using Tabel::find()
Some refactoring in the way results are groupped and how the find query
is constructed
Small refactoring and beginnings of a flyweight for table objects that
will replace ClassRegistry
Adding a simplistic implementation of contains, only for belongsTo and
hasOne associations
Adding fields for contained tables when the 'fields' key is defined
Adding all association fields to the select if none is specified
Making it easy to prevent association fields be selected by default
Small refactor and finally testing that results are groupped correctly
for contained tables
Removing unneded typecasting
Fixing last minute syntax error
Update tests to reflect changes in Table.
Adding abstract association class to be used in table instances
Documenting Association class
Adding the source() method to Association
Implementing belongsTo association
Documenting BelongsTo