Commit Graph

337 Commits

Author SHA1 Message Date
Pavel Puchkin a2cafaa367 Fix bug in ANBU that cause wrong total time showing on Queries tab
When query time is larger than one second 'array_sum' cannot convert it
to float right. Also, it is better to fire 'laravel.query' event with
raw time as an argument rather than its string representation
2013-02-01 11:10:02 +11:00
Taylor Otwell 05cb1ea5ad Merge pull request #1234 from ROMOPAT/patch-1
add use Closure;
2013-01-05 13:24:45 -08:00
Taylor Otwell e7ae316e44 Merge pull request #1235 from ROMOPAT/patch-2
Undefined namespace Grammars
2013-01-05 13:23:47 -08:00
David Staley 4cea38e0b3 Added in a new method for checking pdo drivers
Added in a more dynamic method for checking whether to use dblib or
sqlsrv drivers for a mssql pdo connection. This is to make local mac
devs work well with windows prod machines.
2013-01-02 10:44:20 -07:00
Taylor Otwell 0a0eb3779c Merge pull request #1365 from sdbondi/develop
Ref #649 - Added query builder support for BETWEEN clauses
2012-10-25 06:11:15 -07:00
Jason Lewis 1a7f2bf27f Merge pull request #1352 from laravie/patch/code-standard
[Code Standard] Slight improvement to use of tab over space and curly bracket
2012-10-20 07:29:39 -07:00
Stan Bondi 5f4838726e Ref #649 - Added query builder support for BETWEEN clauses
Signed-off-by: Stan Bondi <stan@stanley-pc.(none)>
2012-10-17 23:36:18 +02:00
Franz Liedke 2d052a3222 Get rid of duplicate function call. 2012-10-17 18:28:42 +03:00
Franz Liedke a6c681db39 Make sure sync() always works with arrays. 2012-10-17 18:27:35 +03:00
crynobone fd86aef25a Trivial improvement to Laravel, while it is not documented, it has been a standard in Laravel to use tab as indentation and new line for curly bracket
Signed-off-by: crynobone <crynobone@gmail.com>
2012-10-15 23:35:53 +08:00
Taylor Otwell d55328cc52 Merge pull request #1320 from dejangeci/feature/dbexception-inner
Added a getInner method for retrieving the inner exception
2012-10-07 12:05:01 -07:00
Taylor Otwell 3416506194 increment version. refactor eloquent eager loading matching. 2012-10-07 14:04:29 -05:00
Taylor Otwell 1df8fa91fc Merge pull request #1322 from vFragosop/eloquent/relationship_performance
Fixing has_one iterations
2012-10-07 11:56:24 -07:00
Vinícius Fragoso f6c7cf2dcd Fixing pivot on has_one aswell as properly indenting 2012-10-07 12:15:57 -03:00
Dejan Geci 165da94aee Added a getInner method for retrieving the inner exception
Signed-off-by: Dejan Geci <dejan.geci@gmail.com>
2012-10-07 13:55:32 +02:00
Taylor Otwell 790a540620 Merge pull request #1294 from danielboendergaard/phpdoc-fix
Fixed wrong return type in phpdoc
2012-10-06 12:39:23 -07:00
Vinícius Fragoso f36446bd10 Improving laravel relationship performance 2012-10-05 10:35:48 -03:00
Daniel Bøndergaard 54397e1bf2 Fixed wrong return type in phpdoc
Signed-off-by: Daniel Bøndergaard <db@helmstmt.com>
2012-09-28 10:10:35 +02:00
Taylor Otwell 02cb96a008 fix bug in eloquent model. 2012-09-27 17:44:03 -04:00
Taylor Otwell fc9b0e1636 Merge pull request #1201 from JoostK/fix-1
Fixed a problem with `Eloquent::get_dirty`
2012-09-25 18:37:09 -07:00
RK f148f6211c Fixing the array_get misspelling. 2012-09-24 10:35:07 -04:00
RK 258169ea00 [#1261] get_key now pulls from $original instead
This is in reference to issue #1261, where Model->get_key() returns
the key from the $attributes instead of from the $original property.
This breaks the functionality of a model with a primary key that may
change, as the SQL generated will be something like:

UPDATE `model` SET `key` = 'new-key' WHERE `key` = 'new-key';

Which won't update the model in the database.
2012-09-24 09:58:20 -04:00
Patrick Romowicz 966e8462c9 Update laravel/database/connection.php 2012-09-17 21:49:17 +03:00
Patrick Romowicz 5f9a26bae3 Undefined namespace Grammars 2012-09-17 21:42:47 +03:00
Patrick Romowicz 034c63b39d add use Closure; 2012-09-17 21:34:13 +03:00
JoostK 5f99c81035 Fixed a problem whith `Eloquent::get_dirty`
When you had a synched Eloquent model (e.g. without changed values) but
one of those values is `null`, then that value would be considered as
dirty. `Eloquent::changed` returns false, but the value is present in
`Eloquent::get_dirty`.

This fix makes sure that a `null` value in `$attributes` is only
present in `get_dirty` when it wasn't at all *set* in `$original`.
2012-09-09 20:52:33 +02:00
Callum McIntyre 6b73974505 Added new touch function to eloquent, updates timestamps and immediately saves
Signed-off-by: Callum McIntyre <mcintyre1994@gmail.com>
2012-09-03 21:44:16 +01:00
Taylor Otwell b061b9b21c Merge pull request #1150 from franzliedke/patch-40
Get rid of duplicate code for DROP TABLE in schema grammars.
2012-09-01 18:05:29 -07:00
Taylor Otwell 852b10e836 Merge pull request #1143 from franzliedke/patch-38
Fix insert() method for related models.
2012-09-01 18:02:41 -07:00
Taylor Otwell db48fa4140 Merge pull request #1121 from mcintyre94/minor/unprotect-eloquent-timestamps
Minor/unprotect eloquent timestamps
2012-09-01 17:52:53 -07:00
Taylor Otwell 4db08087f7 Merge pull request #1089 from kbanman/fix-query-lists
Fix Query::lists() for empty resultsets
2012-09-01 17:41:49 -07:00
Taylor Otwell 4a60981582 Merge pull request #1084 from joecwallace/pivot_fix
Fixing a bug with saving data to pivot table
2012-09-01 17:40:14 -07:00
Taylor Otwell 46f68ab78c Merge pull request #813 from anaxamaxan/patch-3
Allow Model instance or id for first argument in Has_Many_And_Belongs_To::attach()
2012-09-01 16:52:36 -07:00
Taylor Otwell c7679bafe0 Merge pull request #770 from abigwonderful/develop
added dblib option to sqlsrv connector class /sam fitz (abigwonderful)
2012-09-01 16:45:50 -07:00
Taylor Otwell f34063c517 Fix bug in Eloquent to_array method. 2012-08-29 14:44:16 -05:00
Franz Liedke e11d13ae31 Get rid of duplicate code for DROP TABLE in schema grammars. 2012-08-27 15:09:11 +02:00
Franz Liedke e46f07d436 Fix method signature and return values of insert() method. 2012-08-27 13:46:32 +03:00
Franz Liedke aa341357ec Fix insert() method for related models. 2012-08-26 01:10:31 +03:00
Callum McIntyre f8fdcd894a Changed timestamp function in eloquent/model.php to public 2012-08-19 15:15:42 +01:00
Taylor Otwell 1203473469 revert eloquent back to 3.2.3 2012-08-17 09:18:16 -05:00
Taylor Otwell 9718d5cd0d fix nested queries. 2012-08-17 09:02:32 -05:00
Dayle Rees 4b8ba99211 Merge pull request #1043 from tobsn/patch-10
type boolean is tinyint(1)
2012-08-12 12:43:15 -07:00
Kelly Banman e3a000af41 Fix Query::lists() for empty resultsets 2012-08-11 15:52:58 -07:00
Joe Wallace d31f89d42f Fixing a bug with saving data to pivot table 2012-08-09 22:10:49 -05:00
Sergii Grebeniuk 690e8572aa phpdoc fixes 2012-08-03 18:17:48 +03:00
Tobsn 5716b4da40 type boolean is tinyint(1)
switched from default "tinyint" which creates a tinyint(4) to the
standard mysql boolean type "tinyint(1)"
2012-08-02 00:54:30 +02:00
Dayle Rees 30175c2a52 fixing merge issues for comment tweaks 2012-07-31 16:55:02 +01:00
Tobsn 89d8c5bb0d Returning results with SHOW queries
reference to #991
2012-07-31 10:04:53 +02:00
Dayle Rees 2c6ed23b45 fixing merge issues 2012-07-27 13:52:15 +01:00
Pascal Borreli 8a34aa5077 Fixed typos 2012-07-27 11:29:59 +00:00