Commit Graph

226 Commits

Author SHA1 Message Date
Andrew Ellis 8e12e7a819 where_nested no longer breaks on closures that don't actually set anything 2012-05-11 13:11:02 -06:00
Taylor Otwell b097b6c682 Fix to_array() in eloquent model. 2012-05-11 13:22:04 -05:00
Andrew Ellis 100a59c9c4 added trim() for the sql statement 2012-05-03 11:16:32 -06:00
Taylor Otwell 295c3b80c2 add sqlite query driver. 2012-05-03 08:28:40 -05:00
Taylor Otwell 4822f847c2 pass delete method through eloquent query. 2012-05-03 08:20:33 -05:00
Taylor Otwell b5f5927fa7 Fix bug with many-to-many relationships on non-default database connection. 2012-05-02 09:37:40 -05:00
Taylor Otwell 7e33ec5f34 Allow the registration of custom database drivers. 2012-04-30 22:40:18 -05:00
Taylor Otwell 9057c60a5f Merge pull request #584 from bencorlett/develop
Adding having() support to the Fluent query builder.
2012-04-26 18:26:19 -07:00
Taylor Otwell 86fce099b3 Fixed belongs_to primary key bug. 2012-04-26 11:25:47 -05:00
Taylor Otwell ca06582369 Add some events to Eloquent models. 2012-04-26 09:30:34 -05:00
Taylor Otwell 9cee86ffb9 use array_values on relationship matches. 2012-04-24 22:38:30 -05:00
Ben Corlett af6d76f713 Adding having() support to the Fluent query builder.
Signed-off-by: Ben Corlett <bencorlett@me.com>
2012-04-25 11:18:50 +10:00
Taylor Otwell 1dea9852a9 fix eager loading of belongs_to relationships when all keys are null. 2012-04-24 10:37:40 -05:00
Taylor Otwell 94948cf675 Fix Eloquent eager loading matching. 2012-04-23 16:08:57 -05:00
Taylor Otwell a92ab1ca30 Fixing bugs. 2012-04-20 11:35:47 -05:00
Taylor Otwell b9d573467a Merge pull request #531 from markhuot/develop
Syncing Up Magic Methods
2012-04-18 18:50:19 -07:00
Taylor Otwell b7ac667405 tweak belongs to eager constraining. 2012-04-17 14:33:17 -05:00
Mark Huot 49384514ef The __get() magic method runs three checks before giving up but the __isset() method only runs two checks. This syncs the logic to ensure that __get() and __isset() are looking at the same possibilities. 2012-04-13 10:20:34 -03:00
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 363b7c54df Merge branch 'staging' into develop 2012-04-01 13:51:05 -05:00
Taylor Otwell 63ff04991b fixing merge conflicts. 2012-04-01 13:50:55 -05:00
Taylor Otwell d2f35900cd fix where in shortcut and response header casing problem. 2012-04-01 13:48:27 -05: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 9dee79ba00 Fixing SQLite connector.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
2012-03-27 10:25:42 -05:00
Taylor Otwell 8af11e6d61 Fix bug in eloqueny hydrator. 2012-03-26 16:49:31 -05:00