Merge 1.8/develop into 1.7/master

commit e8457ba9296078310cdea47002e5c7b7cb083da2
Author: WanWizard <wanwizard@wanwizard.eu>
Date:   Fri Jun 27 22:57:51 2014 +0200

    fixed broken DB as_object() method; closes #334

commit d84128372c4b895de7a7793b3a2c18cce90b0080
Merge: 5eafadf f2a03f7
Author: Steve "Uru" West <uruwolf@gmail.com>
Date:   Wed Jun 4 11:19:36 2014 +0100

    Merge pull request #350 from MacTwister/1.8/develop

    Passing model properties to is_changed method.

commit f2a03f7033e22cdd7c80ae30e73308197e17a6c7
Author: Julian G <julian@mactwister.com>
Date:   Wed Jun 4 11:45:34 2014 +0200

    Passing model properties to is_changed method.

    Passing model properties stops is_changed searching the relations by
default which is already handled by the observer relation property if
required by the model.

    Signed-off-by: Julian G <julian@mactwister.com>

commit 5eafadf503e776308b3ff5c67a33a8c1a2aa96d9
Merge: 9f9812c eff6b57
Author: Steve "Uru" West <uruwolf@gmail.com>
Date:   Tue Jun 3 19:51:50 2014 +0100

    Merge pull request #349 from propcom/no-change-no-complain

    Don't complain about changing PK if it's not actually changing

commit eff6b57d97d631254278a2c72776a20335cb5713
Author: Alastair McGowan-Douglas <alastair@propcom.co.uk>
Date:   Tue Jun 3 17:23:27 2014 +0100

    Don't complain about changing PK if it's not actually changing

commit 9f9812c983a038b8dd5dca134f9501e770b12c91
Author: WanWizard <wanwizard@wanwizard.eu>
Date:   Mon May 12 17:42:55 2014 +0200

    fixed incorrect processing of DB_Expr objects in select(); closes

commit 4fe2f6d9db0d627b81fdec5ecd8d58afc7ef7ddd
Merge: a709e3f 4cc3a4a
Author: Harro Verton <wanwizard@wanwizard.eu>
Date:   Sun May 11 20:45:02 2014 +0200

    Merge pull request #344 from sagikazarmark/patch-1

    Update slug.php

commit 4cc3a4ad81ded062eac6cb9d2514186c7605cd19
Author: Márk Sági-Kazár <mark.sagikazar@gmail.com>
Date:   Fri May 9 09:45:30 2014 +0200

    Update slug.php

    Bad logical operator

commit a709e3f8d7ff8d087fd1b3566fd4b8ed51d1d228
Merge: 21575d7 91e9cad
Author: Steve "Uru" West <uruwolf@gmail.com>
Date:   Sat May 3 23:22:58 2014 +0100

    Merge pull request #343 from TamasBarta/1.8/develop

    Correcting typo in slug observer

commit 91e9cade0081fd6dd1ecc1cdf98c58746fcbaba4
Author: Barta Tamás <barta.tamas.d@gmail.com>
Date:   Sun May 4 00:19:13 2014 +0200

    Correcting typo in slug observer

commit 21575d71f45292ffa125cce1cc9b0c1ce48fbe75
Author: WanWizard <wanwizard@wanwizard.eu>
Date:   Sun Apr 27 20:38:14 2014 +0200

    added internal sanitation method to allow selective sanitation

    by overloading the method in your model and checking the $field
value

commit 449803a503872b11832afc4d19feaaa71231d93a
Merge: 72dc959 c553687
Author: Harro Verton <wanwizard@wanwizard.eu>
Date:   Thu Apr 24 22:57:55 2014 +0200

    Merge pull request #336 from sagikazarmark/1.8/develop

    Observer Slug manually assigned property

commit 72dc9592446889d967c1f84b582edccfecf75a20
Author: WanWizard <wanwizard@wanwizard.eu>
Date:   Wed Apr 16 23:43:15 2014 +0200

    add support for select('*')

commit bc31c19a3d5c8418f81957779a1bbde4271a2614
Author: WanWizard <wanwizard@wanwizard.eu>
Date:   Wed Apr 16 23:32:12 2014 +0200

    expirimental support for DB::expr() in ORM selects

    using syntax ->select(array(DB::expr("count(*)"),
"columnaliasname")->

commit c7bd709d79b0690297c8f3f33c95270445051eb6
Author: WanWizard <wanwizard@wanwizard.eu>
Date:   Wed Apr 16 23:30:18 2014 +0200

    options for observers are always defined as an array

commit c5536872229c2383de6324c171900816d79cee12
Author: Sági-Kazár Márk <mark.sagikazar@gmail.com>
Date:   Thu Apr 10 14:58:25 2014 +0200

    Uniqueness and overwrite can now live with each other

commit 8ff711b17accf53dd51d739fb97f880ecadae58a
Author: Sági-Kazár Márk <mark.sagikazar@gmail.com>
Date:   Thu Apr 10 14:50:20 2014 +0200

    Fixed indentation

commit f8792d730d86f17845a45a4d34e4fa79c582f24f
Author: WanWizard <wanwizard@wanwizard.eu>
Date:   Tue Apr 8 21:53:40 2014 +0200

    on new objects, validation should run on all fields

commit aeab0c59d377639ce2baa52ddf4f396557531ffd
Merge: c04496d 9c66ea7
Author: Harro Verton <wanwizard@wanwizard.eu>
Date:   Sat Mar 22 19:44:36 2014 +0100

    Merge pull request #342 from mikepmtl/patch-4

    Update slug.php Observer. Uniqueness as option

commit 9c66ea7e417c8394145b9994f76b784ad1eec4d3
Author: mikepmtl <mikepmtl@me.com>
Date:   Sat Mar 22 13:54:57 2014 -0400

    Slug uniqueness as option

commit 3c09630a8fbc238e183ab99eaea45fbac47776ce
Author: mikepmtl <mikepmtl@me.com>
Date:   Sat Mar 22 10:15:52 2014 -0400

    Update slug.php Observer. Uniqueness as option

    I use slugs very often simply to give the end use a better
description of the URL and for SEO.

    Ex.  "http://server.com/doc/281/communications/about/about-the-
communications-department/"

    In a case like this I would prefer not to have uniqueness in the
slug as I only require the ID (281) and I dislike slugs with numbers in
them (about, about-1, about-2) since many "departments" in this case
will have an "About" page.

commit c04496def44a9432a5a562817d0a002860335d12
Author: WanWizard <wanwizard@wanwizard.eu>
Date:   Wed Mar 5 12:55:21 2014 +0100

    check both type and data_type to determine if loose typing is
needed. Closes #339

commit a14c5821355d94325c2d2d058050429d9557194e
Merge: dd7ad22 bde4425
Author: Harro Verton <wanwizard@wanwizard.eu>
Date:   Thu Feb 6 08:34:07 2014 +0100

    Merge pull request #335 from sagikazarmark/1.8/develop

    Fixed separator in Observer Slug

commit bde442542b9dfd2064773e6ff659cc868903f7b3
Author: Sági-Kazár Márk <mark.sagikazar@gmail.com>
Date:   Thu Feb 6 01:58:40 2014 +0100

    Variable typo

commit 6629d64fe859a611703093b1aafae13a64b24dc4
Author: Sági-Kazár Márk <mark.sagikazar@gmail.com>
Date:   Thu Feb 6 01:51:52 2014 +0100

    Fixed separator in Observer Slug

commit dd7ad22ea3f7a509e323884d909369deaadd3b0c
Merge: 58033db e83f6e9
Author: Harro Verton <wanwizard@wanwizard.eu>
Date:   Mon Jan 27 08:45:06 2014 -0800

    Merge pull request #328 from propcom/bugfix-original-relation-blank-
ids

    Only update original relations with imploded PKs of not new objects

commit 58033db7f4ac8fd78ad2d68b26d48c24892c979d
Author: WanWizard <wanwizard@wanwizard.eu>
Date:   Mon Jan 27 17:41:34 2014 +0100

    revert PR #328

commit f4d7d4a9994ea50e0e79694e949fc535047308b6
Author: WanWizard <wanwizard@wanwizard.eu>
Date:   Mon Jan 27 17:25:18 2014 +0100

    make sure $frozen has a value

commit fcbf763e27d8a23837a09c4a0e8c5ea2af39472a
Author: WanWizard <wanwizard@wanwizard.eu>
Date:   Mon Jan 27 17:22:02 2014 +0100

    do not cache the new object if we already have on (but it's frozen)

commit c025511c3d47ea6048d44a45eeee5b452888c33f
Merge: f462c55 d79236a
Author: Harro Verton <wanwizard@wanwizard.eu>
Date:   Mon Jan 27 08:20:05 2014 -0800

    Merge pull request #312 from
felixgilles/bugfix_update_original_relations

    Query hydrate: update_original_relation only for relations concerned

commit f462c552a878f992d7fc45aabb27ca50b9a22908
Merge: 70ce541 928b607
Author: Harro Verton <wanwizard@wanwizard.eu>
Date:   Mon Jan 27 08:19:57 2014 -0800

    Merge pull request #333 from propcom/bugfix-frozen-hydration

    Don't use a frozen object from cache when hydrating

commit e83f6e95a9f028dbab3951a734e1dc007291e9fa
Author: Andrew Wheal <andreww@propcom.co.uk>
Date:   Thu Dec 12 10:38:38 2013 +0000

    extra checking on updating original relations

commit c6469359de6b2b4e16b8393b5e70c1a4c5180c7f
Author: Andrew Wheal <andreww@propcom.co.uk>
Date:   Mon Dec 9 11:33:03 2013 +0000

    Only update original relations with imploded PKs of not new objects

    Signed-off-by: Andrew Wheal <andreww@propcom.co.uk>

commit 70ce541f435330404f0b8580365cde0b330aff11
Merge: 1ea1a1d e1dc87f
Author: Harro Verton <wanwizard@wanwizard.eu>
Date:   Fri Jan 17 02:06:58 2014 -0800

    Merge pull request #329 from sagikazarmark/1.8/develop

    EAV properties added to to_array

commit e1dc87fb2ff6da0b27f9389087ca35aa7c0412a8
Author: Sági-Kazár Márk <mark.sagikazar@gmail.com>
Date:   Fri Jan 17 11:04:33 2014 +0100

    Check first whether $eav is true

commit d7c5486fcf4349817df0cc5911940a693091c7b9
Author: Sági-Kazár Márk <mark.sagikazar@gmail.com>
Date:   Fri Jan 17 11:03:40 2014 +0100

    Fixed typo

commit 928b6077bcb9c7772f84aea1b76ea5b46baa998a
Author: Andrew Wheal <andreww@propcom.co.uk>
Date:   Wed Jan 15 10:46:50 2014 +0000

    dont use a frozen object from cache when hydrating

commit 1ea1a1d4a2090585fe09c13be559baebb9ff32a9
Author: WanWizard <wanwizard@wanwizard.eu>
Date:   Sat Jan 11 20:27:33 2014 +0100

    fixed passing custom data to a model constructor; fixed as_object()
instantiations not cached

    thanks for @keigoi for spotting the custom data issue (see #332)

commit 935528410beba8bbddca7aa5e7ba4f98c3304ad1
Author: Steve "uru" West <uruwolf@gmail.com>
Date:   Sat Jan 11 12:28:56 2014 +0000

    Makes Soft_Delete::purge() actually delete models

commit 9e15948aafe65802f9505effa89fa768e8901de0
Author: WanWizard <wanwizard@wanwizard.eu>
Date:   Fri Dec 27 13:07:50 2013 +0100

    bumped the copyright to 2014

commit bf52bf6328b6cc4df3453c38356633ce8523a457
Author: Sági-Kazár Márk <webmaster@firstcomputer.hu>
Date:   Fri Dec 13 14:20:21 2013 +0100

    Relation filtered, properties merged to array

commit fbe8232d1de18ba860ba0e6fff7f15abbb17ce8f
Author: Sági-Kazár Márk <webmaster@firstcomputer.hu>
Date:   Fri Dec 13 13:35:38 2013 +0100

    Introduced third parameter

commit 8684c5544164e8428f8f9514fd8c27954cc36321
Author: Sági-Kazár Márk <webmaster@firstcomputer.hu>
Date:   Fri Dec 13 12:28:34 2013 +0100

    EAV processing is merged with EAV container check

commit 4b8fc77574e15f22a77b85e6319161d752f67315
Author: Sági-Kazár Márk <webmaster@firstcomputer.hu>
Date:   Fri Dec 13 12:07:31 2013 +0100

    EAV properties are loaded in the correct order, property is a
reference to the original relation array

commit 7fe00c209ec40a2b580158e32c99d593a07241a2
Author: Sági-Kazár Márk <webmaster@firstcomputer.hu>
Date:   Mon Dec 9 16:46:51 2013 +0100

    EAV properties added to to_array

commit 381b8115fa8e32a60797ebb91efdcbfc51cc6d51
Author: WanWizard <wanwizard@wanwizard.eu>
Date:   Thu Dec 12 23:43:04 2013 +0100

    remove static from method definitions

commit ca9aeab08e0e8bfc2a089f748917d834d20169cd
Author: WanWizard <wanwizard@wanwizard.eu>
Date:   Thu Dec 12 23:10:24 2013 +0100

    make sure the before_save observer is called before checking the
diff; closes #330

commit e3d2324118f1f17b5091870d128d80ef93aa5ebc
Author: WanWizard <wanwizard@wanwizard.eu>
Date:   Thu Dec 12 23:09:51 2013 +0100

    added methods to enable/disable defined observer events. related

commit 235cf0154fcf989701fd6775c02dc2698c5dc011
Merge: 03727af f62d64e
Author: Harro Verton <wanwizard@wanwizard.eu>
Date:   Thu Dec 12 12:16:57 2013 -0800

    Merge pull request #331 from SlKelevro/fix-relations-connection-
usage

    fixed many-to-many relation not using write connection

commit f62d64e31ce490c391c518b4b6aadcd4611fa380
Author: slevin <slevin@mailer.ag>
Date:   Thu Dec 12 16:05:55 2013 +0200

    fixed many-to-many relation not using write connection

commit 03727af3f611b1062287f4a1bc5590354452f3a0
Author: WanWizard <wanwizard@wanwizard.eu>
Date:   Thu Dec 12 10:58:42 2013 +0100

    permanent fix for e8a3ad0b5e2b9183932acebe973ff276d94de803

commit e8a3ad0b5e2b9183932acebe973ff276d94de803
Author: WanWizard <wanwizard@wanwizard.eu>
Date:   Wed Dec 11 20:19:39 2013 +0100

    do not attempt to clean relations

commit c74e3adeebfadcbca5f76734917a8c9adb38d6e9
Merge: 0f2dd15 3ab2a12
Author: Steve "Uru" West <uruwolf@gmail.com>
Date:   Thu Dec 5 03:34:17 2013 -0800

    Merge pull request #326 from sagikazarmark/1.8/develop

    1.8/develop

commit 3ab2a12518a866bca4fc85618f362c960b1af999
Author: Sági-Kazár Márk <webmaster@firstcomputer.hu>
Date:   Wed Dec 4 19:20:47 2013 +0100

    Added id only primary key check to query condition

commit 4240312a1bb9b805b9c0d93932d448883074cb85
Author: Sági-Kazár Márk <webmaster@firstcomputer.hu>
Date:   Wed Dec 4 18:53:17 2013 +0100

    Temporal query add condition only if primary_key check is enabled

commit 0f2dd1561a62aee4db00a99380f79ed73dfe8180
Merge: 1efbd41 0452103
Author: Steve "Uru" West <uruwolf@gmail.com>
Date:   Sun Dec 1 14:22:04 2013 -0800

    Merge pull request #325 from sagikazarmark/1.8/develop

    Temporal Model probable query fix

commit 0452103bea0235287c84a1f9db8cf9246bca9b99
Author: Sági-Kazár Márk <webmaster@firstcomputer.hu>
Date:   Sun Dec 1 23:16:51 2013 +0100

    Temporal Model query condition added

commit efba0256099dc04dfc8e163e907c2055819efc12
Author: Sági-Kazár Márk <webmaster@firstcomputer.hu>
Date:   Sat Nov 30 20:19:41 2013 +0100

    Removed trailing tabulator

commit d79236a13f860367830a4b027df83bc20acb8017
Merge: 397e81f 3a2b3b4
Author: Gilles FELIX <felix@novius.com>
Date:   Thu Oct 17 17:20:07 2013 +0200

    Merge branch '1.8/develop' into bugfix_update_original_relations

commit 397e81f7abc5dc926d1606ad92dfc557c3e20c9f
Author: Gilles FELIX <felix@novius.com>
Date:   Wed Oct 2 15:50:52 2013 +0200

    Query hydrate: update_original_relation only for relations concerned