Commit Graph

70 Commits

Author SHA1 Message Date
Taylor Otwell 1847a369fb fixed eloquent datetime bug when determining dirty attributes. 2012-04-11 16:08:15 -05:00
Taylor Otwell 94b8582865 Add DateTime support to database binding layer.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-04-10 15:03:42 -05:00
Taylor Otwell fda19731c5 Fixing update handling in Has_Many and Has_One relationships.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-04-10 11:26:03 -05:00
Taylor Otwell 1a5d4250d1 fix conflicts. 2012-04-10 10:10:31 -05:00
Taylor Otwell 2e7cca1d0b Merge pull request #512 from Mikaweb/patch-1
Misspelt word corrected!
2012-04-10 07:49:05 -07:00
Joe Wallace f7aee0ca2a Model::table() uses class_basename() helper - which properly discards namespaces on *nix systems
Signed-off-by: Joe Wallace <joew@atiba.com>
2012-04-09 11:28:40 -05:00
Maxime Dizerens 3850f575f0 Misspelt word corrected! 2012-04-07 00:03:33 +03:00
Taylor Otwell 8a687053a8 fix conflicts. 2012-04-05 09:33:50 -05:00
Taylor Otwell cc4514e8f6 Fix bug in many to many eager loading.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-04-05 09:21:28 -05:00
Taylor Otwell d1adc8c181 Merge pull request #484 from kbanman/bugfix-pivot
Timestamps are optional in many-to-many pivot table
2012-04-04 08:36:01 -07:00
Taylor Otwell eda46a815e fix eloquent model attribute resolution. 2012-04-04 10:33:24 -05:00
Taylor Otwell 6fdccd7496 Fixing bug.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-04-03 11:00:45 -05:00
Taylor Otwell 517da41a72 Tweaking has_many "save" method.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-04-03 10:56:55 -05:00
Taylor Otwell d0a701e8f7 Tweaking has_many "save" method.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-04-03 10:55:04 -05:00
Taylor Otwell df70987679 added sync method to has_many relationship. 2012-04-03 10:48:01 -05:00
Kelly Banman 587a80acbb Timestamps are optional in many-to-many pivot table
Signed-off-by: Kelly Banman <kelly.banman@gmail.com>
2012-04-02 14:59:44 -07:00
Taylor Otwell 369ecd80f7 Merge branch 'staging' into develop 2012-03-30 08:45:16 -05:00
Taylor Otwell 636d05665c fix merge conflicts. 2012-03-30 08:44:23 -05:00
Taylor Otwell 75f6384767 fix eloquent->delete bug. 2012-03-30 08:41:52 -05:00
Taylor Otwell 3e0d468470 Merge branch 'staging' into develop 2012-03-29 22:11:42 -05:00
Taylor Otwell 062ae8756c fix conflicts. 2012-03-29 22:11:30 -05:00
Taylor Otwell b5dd77d387 Fixing Eloquent constructor bug.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-29 22:04:04 -05:00
Taylor Otwell 579bc8719f cleaning up code. 2012-03-29 17:13:13 -05:00
Taylor Otwell 144117c0a1 cleaning up the eloquent model class. 2012-03-29 16:58:08 -05:00
Taylor Otwell cd71c1e517 added sync method to has many and belongs to entity relationship. 2012-03-29 16:20:38 -05:00
Taylor Otwell 17cabd47e6 Added to_array() and $hidden variable to the Eloquent base model.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-29 14:12:03 -05:00
Taylor Otwell 720d9de582 Fix bug in eloquent model hydration.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-28 11:07:26 -05:00
Taylor Otwell 8af11e6d61 Fix bug in eloqueny hydrator. 2012-03-26 16:49:31 -05:00
Taylor Otwell 5a59c5f317 Don't use mass assignment in hydrator. 2012-03-26 16:36:23 -05:00
Taylor Otwell 37fd54b848 Merge pull request #448 from danielboendergaard/patch-1
Fixed problem with Eloquent2 pivot tables
2012-03-26 13:26:46 -07:00
Taylor Otwell ba4d1a89c8 Removed add_ magic method from eloquent model as this will be a 3.2 feature. 2012-03-26 10:56:42 -05:00
Daniel Bondergaard 3639d2c46f Fixed pivot model hydration loading in Eloquent2
Signed-off-by: Daniel Bondergaard <danielboendergard@gmail.com>
2012-03-26 14:17:49 +02:00
Taylor Otwell 57cf817de4 Fix pivot constraints on ->pivot() method of many-to-many.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-22 21:47:35 -05:00
Taylor Otwell e96f75e8cc Fixing bugs in database layer. 2012-03-22 13:12:27 -05:00
Taylor Otwell b6615ddbee Fixing a few things in Eloquent 2. 2012-03-22 11:00:13 -05:00
Taylor Otwell 268e6e460d Updating $eloquent->dirty() method. 2012-03-22 09:18:11 -05:00
Taylor Otwell 453d4154f2 Added "pivot" method to has_many_and_belongs_to. 2012-03-22 09:07:21 -05:00
Taylor Otwell 0961f8f766 Fixing eloquent 2 query->first method. 2012-03-21 22:00:30 -05:00
Taylor Otwell 30204e082b Fixing bugs in eloquent relating to namespaces. 2012-03-21 15:45:05 -05:00
Taylor Otwell bb2f458304 Added "add_" magic method to eloquent model. 2012-03-21 14:23:46 -05:00
Taylor Otwell 43212f8505 Fix bug in eloquent model. 2012-03-21 10:38:39 -05:00
Taylor Otwell 4336bb885a Fix attribute retrieval bug in Eq2. 2012-03-20 11:43:11 -05:00
Taylor Otwell 079400ff3d Allow passing in a model instance to relationship insert / update methods. 2012-03-20 09:03:31 -05:00
Taylor Otwell e540fd3b6d Automatically detect eloquent table names. 2012-03-19 14:11:11 -05:00
Taylor Otwell d80730cf0d Removed transaction method from Eloquent model since it is made pointless by DB::transaction. 2012-03-19 08:43:07 -05:00
Taylor Otwell 0455438ebe Added transaction method to database connection and eloquent model. 2012-03-18 22:39:04 -05:00
Taylor Otwell fcff36a0ac Added related model updating from belongs_to relationship. 2012-03-17 23:14:01 -05:00
Taylor Otwell 762f2402c3 Fixing bugs and improving.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-16 15:32:26 -05:00
Taylor Otwell b5e75f6fcf Fixing bugs and improving.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-16 14:08:28 -05:00
Taylor Otwell dc92dd264d Adding auto detection of intermediate table names.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-16 13:01:48 -05:00