Commit Graph

1958 Commits

Author SHA1 Message Date
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
Mohammad Sadeghi
9d28938d55 . 2012-09-24 16:42:09 +03:30
Mohammad Sadeghi
7647c3fcba added 'u' flag for preg_match to match UTF-8 URIs. 2012-09-24 16:39:28 +03:30
Mohammad Sadeghi
9df9a5df04 segment pattern to match a single segment, also matches UTF-8 segments. 2012-09-24 16:15:11 +03:30
Jason Lewis
9fae4dc8d7 Merge branch 'master' into develop 2012-09-24 01:01:53 +09:30
Jason Lewis
8c580d17fb You can only pass the ID of a user, not an object.
Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
2012-09-24 01:01:14 +09:30
Franz Liedke
de53feb07e Fix validation tests one more time. 2012-09-21 13:11:54 +02:00
Franz Liedke
f77041ced9 Add another test with quotes around the validation rule's parameter. 2012-09-21 12:31:49 +02:00
vtalbot
8931369665 Add task bundle:uninstall, bundle:unpublish, migrate:rollback bundle, migrate:reset bundle. 2012-09-20 22:15:29 -04:00
Joel Marcotte
3d51200a88 Auth token now nulled on logout
Signed-off-by: Joel Marcotte <skaner@gmail.com>
2012-09-20 17:54:28 -04:00
Duru Can Celasun
2b787763aa Fix a tiny typo 2012-09-20 10:13:01 +03:00
Shawn McCool
33b5f6377c Update laravel/documentation/routing.md
Added a warning about using Controller::detect() for routing.
2012-09-19 18:13:31 +03:00
Dayle Rees
0dc124d342 Merge pull request #1210 from franzliedke/patch-44
Definition list support (#1202)
2012-09-19 06:29:31 -07:00
Boris Strahija
925e5bed73 Trimming whitespace before doctype tag
When using layouts and sections
2012-09-18 17:22:45 +03:00
Peter Coles
184b2989e2 Correct correction 2012-09-18 11:59:11 +02:00
Peter Coles
14eebab94a Correct broken links in docs 2012-09-18 05:54:41 +02: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
Franz Liedke
b1e4cf9d29 Use Request helper to determine whether we're in CLI mode. 2012-09-17 18:42:25 +03:00
Aaron Kuzemchak
581fcc5c47 Cleaner regex
Signed-off-by: Aaron Kuzemchak <aaron@kuzemchak.net>
2012-09-15 20:48:18 -04:00
Aaron Kuzemchak
03acf9ca50 Fixes language URI routing issue
Signed-off-by: Aaron Kuzemchak <aaron@kuzemchak.net>
2012-09-15 18:57:29 -04:00
Franz Liedke
65d4b2448b Fix closing tag in definition list helper. 2012-09-14 22:21:35 +03:00
Duru Can Celasun
1ee55a3b38 Fix a tiny typo
s/encourage/encouraged
2012-09-14 13:28:02 +03:00
arisk
752161cae3 Setting the exception code in the constructor 2012-09-14 16:47:55 +07:00
arisk
e541cf9ebd Added PDO error code 2012-09-14 11:16:46 +07:00
Franz Liedke
d051994e2c Fix CLI mode detection for some shared hosts. 2012-09-12 14:56:46 +03:00
Franz Liedke
fedc9fc45e Fix hardcoded "id" column in Eloquent auth driver. 2012-09-12 14:48:07 +03:00
Franz Liedke
5942771ce9 Add documentation for definition list helper. 2012-09-12 14:42:20 +03:00
Franz Liedke
c7763a23bd Add definition list helper to HTML class. 2012-09-12 14:40:55 +03:00
Dayle Rees
38562d5007 Merge pull request #1160 from kapv89/patch-2
Updated Paginator to fit better with bootstrap 2.1
2012-09-11 03:20:44 -07:00
kapil verma
b63b0c0829 Updated Documentation for Bootstrap-y Pagination
The Docs now show bootstrap style Pagination
2012-09-11 08:09:30 +05:30
kapil verma
85cab82f37 Fixed 2 stupid bugs for better markup
Thats it .. pulling on the docs now
2012-09-11 07:48:01 +05:30
Bryan te Beek
01ba355787 Optimize Str-helper (see pull request #1180)
Signed-off-by: Bryan te Beek <bryantebeek@gmail.com>
2012-09-10 21:11:20 +02:00
Jason Walton
adc23dc964 Added traffic and chassis as uncountable words to properly feed pluralizer
Signed-off-by: Jason Walton <jwalton512@gmail.com>
2012-09-10 11:25:08 -07:00
Alex Andrews
f02e7dc4ca Reformatted return
Changed the return of the method in line with suggestions from @JoostK.
2012-09-10 12:27:50 +01:00
Dayle Rees
a5bb035e4c Merge pull request #1165 from JoostK/develop
Problem with manual running of Artisan tasks
2012-09-10 03:37:24 -07:00
Dayle Rees
666db87137 Merge pull request #1169 from mcintyre94/minor/add-touch-eloquent
Added new touch function to eloquent, updates timestamps and immediately saves
2012-09-10 03:30:32 -07:00
Dayle Rees
f004ddcea7 Merge pull request #1189 from kapv89/patch-5
Turn profiler off using runtime Config
2012-09-10 03:23:36 -07:00
kapil verma
4de8921f2d Fixed The $dots property
So that it doesn't screw up pagination
2012-09-10 12:02:55 +05:30
JoostK
147e0ec656 Implementation of Eloquent tests
Basic Eloquent unit tests.

Lacks database operations, relationship testing and some magic method
calls.
2012-09-10 00:51:02 +02: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
thybag
aa32e4cf72 Rename static::get_encoding() method to static::encoding() to fit better with style. 2012-09-09 14:24:52 +01:00
Neo Ighodaro
f0a2ffef2b The bundle variable is not defined anywhere in the method scope.
Signed-off-by: Neo Ighodaro <thecreativityteam@yahoo.com>
2012-09-09 09:09:41 +01:00
Neo Ighodaro
f7cdb76f36 The bundle variable is not defined anywhere in the method scope. 2012-09-09 09:08:55 +01:00
Jason Lewis
afbae10345 Merge pull request #1175 from franzliedke/patch-42
Fix #1140: Auth / Eloquent / Custom password getter
2012-09-07 23:49:11 -07:00
Jason Lewis
56f665bf6d Merge pull request #1193 from franzliedke/patch-43
Delete phpunit.xml when unit testing
2012-09-07 23:41:08 -07:00
Franz Liedke
9348046d0e Fix dynamically generated phpunit.xml file not being deleted automatically in the test runner. 2012-09-07 14:32:37 +02:00
Franz Liedke
e407e67559 Add documentation for date_format validation rule. 2012-09-07 14:03:23 +02:00
Franz Liedke
a40aabbb05 Implement date_format validation rule. 2012-09-07 14:02:04 +02:00