Merge pull request #241 from propcom/1.6/develop

Don't set the FK to null if we're going to delete it anyway
fixed FK reset on delete of hasone when cascade delete is false

also cleaned up the delete in hasmany
no need to reset FK's on deleting a belongs_to object
Fix PhpErrorException undefined index: id 

If you create an "after_insert" observer that manipulates the just-inserted data, the add_primary_keys_to_where() method call will throw an undefined index exception because _original is empty and _is_new is false. Fix by setting _original to _data immediately after insert.
Fixed warning while using from_array() on new instance
Merge pull request #244 from benharold/fix_after_insert

Fix PhpErrorException undefined index: id
Merge pull request #243 from SCIF/1.6/develop

Fixed warning while using from_array() on new instance
Allow ordering on through table in many-many relationships
fixed typos in hasmany/manymany causing cascaded deletes to fail
fixed isset check on an EAV attribute failed on a false value. Closes #248
allow custom data to be passed when forging an ORM object
fixed original relations not deleted from the model object after the object is deleted
have from_array() return $this so we can chain of it
do not trigger a lazy load when the object is in frozen state
do not destroy original values after running the Typing observer
do a loose comparison between original and data when the data_type is 'int'
proper use of get_class vs get_called_class(). closes #251
Merge pull request #245 from rob-mccann/1.6/develop

Allow ordering on through table in many-many relationships
reformatting PR code
added support for loading customd data and creating related objects to from_array(). closes #236