582 Commits

Author SHA1 Message Date
31fece562e fixed test break 2014-01-10 15:39:06 +01:00
a7b852fcc3 Changed elasticsearch AR primary key handling
now supports mapped primary key when _id is part of source with an
alias.
2014-01-04 04:26:50 +01:00
9e66e08bc7 Fixes #802: Added support for retrieving sub-array element or child object property through ArrayHelper::getValue() 2013-12-31 11:30:44 -05:00
0b28f290f3 Fixes #1704: Incorrect regexp is used in Inflector::camelize() 2013-12-30 10:07:44 -05:00
1361bd3c7f Merge pull request #1683 from Ragazzo/mail_event
Mail events before/after
2013-12-30 06:57:22 -08:00
cbad97c78d change back the visibility of findTableNames to protected. 2013-12-29 09:51:36 -05:00
791d8124ad added test 2013-12-29 06:23:52 +04:00
6f932d99ae Merge branch 'upstream' into 364-toAscii
* upstream: (21 commits)
  Fixes #1643: Added default value for `Captcha::options`
  Fixes #1654: Fixed the issue that a new message source object is generated for every new message being translated
  Allow dash char in ActionColumn’s button names.
  Added SecurityTest.
  fixed functional test when enablePrettyUrl is false.
  fixed composer.json
  minor doc fix.
  Fixes #1634: Use masked CSRF tokens to prevent BREACH exploits
  Use better random CSRF token.
  GII unique indexes avoid autoIncrement columns
  updated debug retry params.
  Added sleep().
  Added unit test for ActiveRecord::updateAttributes().
  Fixes #1641: Added `BaseActiveRecord::updateAttributes()`
  Fixed #1504: Debug toolbar isn't loaded successfully in some environments when xdebug is enabled
  Mongo README.md updated.
  Fixes #1611: Added `BaseActiveRecord::markAttributeDirty()`
  Number validator was missing
  Fixes #1638: prevent table names from being enclosed within curly brackets twice.
  Unique indexes rules for single columns into array
  ...
2013-12-27 18:07:42 +01:00
08aaeda397 refactored inflector's slug and improved fallback char map 2013-12-27 18:06:27 +01:00
b7904c46aa remove TransliteratorHelper 2013-12-27 18:04:05 +01:00
3b1602acc8 Added SecurityTest. 2013-12-27 09:12:58 -05:00
fc9fb80c21 added TransliteratorHelper class 2013-12-26 20:56:11 +01:00
7654fff26d Added unit test for ActiveRecord::updateAttributes(). 2013-12-26 12:39:38 -05:00
795c74100d reverted #1598 and added a test for it 2013-12-26 01:18:55 +01:00
0345191245 Added ActiveQuery::innerJoinWith(). 2013-12-24 21:27:13 -05:00
4f44bb2416 Fixes #1581: Added ActiveQuery::joinWith() to support joining with relations 2013-12-24 00:08:49 -05:00
2402d2d031 Draft implementation of ActiveQuery::joinWith(). 2013-12-23 22:26:44 -05:00
9649a6727a Renamed attributeName and className to targetAttribute and targetClass for UniqueValidator and ExistValidator.
Refactored UniqueValidator and ExistValidator.
2013-12-22 16:40:51 -05:00
252b6c9ef1 Fixes #797: Added support for validating multiple columns by UniqueValidator and ExistValidator 2013-12-22 11:30:59 -05:00
42d8748e6e Fixes #1579: throw exception when the given AR relation name does not match in a case sensitive manner.
Renamed `ActiveRecord::getPopulatedRelations()` to `getRelatedRecords()`
2013-12-21 23:26:35 -05:00
b4612637ec make count behave like in SQL
also fixed count behavior according to limit and offset.
fixes #1458
2013-12-18 17:22:56 +01:00
b59b77cd4f added timeZone property to i18n formatter
fixed #1021
2013-12-17 13:45:16 +01:00
ff7c25ea7b Fixes #1497 (wrong file rendered if language != sourceLanguage) 2013-12-12 22:55:10 +01:00
e2b4708bbd added support for updateCounters to elasticsearch
issue #1313
2013-12-09 14:42:28 +01:00
bce353bf3a fixed test break. 2013-12-06 14:32:59 -05:00
cb4a8c764c Refactored validators. 2013-12-06 14:19:17 -05:00
4df9b6cb0e Merge pull request #1416 from yiisoft/helpers-renames
Helpers refactoring
2013-12-04 08:00:14 -08:00
26767735dc Renamed byte methods, moved path methods back to StringHelper 2013-12-04 14:26:47 +01:00
5f2a612c78 Moved file and path related methods from StringHelper to FileHelper, renamed StringHelper byte methods not to be misused as string methods 2013-12-04 09:48:01 +01:00
164ddf98b0 Fixed test break. 2013-12-04 00:06:01 -05:00
b868e91fee Fixed test break. 2013-12-03 23:52:21 -05:00
b0568612bf Fixes #1402: AR eager loading has problem when asArray() is used together with viaTable(). 2013-12-03 20:58:20 -05:00
7a5a29c767 Added ArrayHelper::keyExists(). 2013-12-02 20:57:24 -05:00
fb3ebe7000 doc cleanup. 2013-11-29 12:47:10 -05:00
bd8f74cf12 Refactored MessageInterface::send(). 2013-11-28 09:55:35 -05:00
0390a99833 Use backquotes to quote column and table names for sqlite (related with #1318) 2013-11-28 09:04:16 -05:00
bb6b75e794 fixed exception check in test. 2013-11-27 23:07:15 -05:00
be583a7a22 fixed problem with sorting by id in elasticsearch
issue #1317
2013-11-27 23:27:47 +01:00
58bd2fb958 Only whitespace removal 2013-11-27 20:19:56 +02:00
5164a1671c finalized Query interface + general cleanup 2013-11-25 20:12:45 +01:00
025d36cbec even more on random test failure 2013-11-25 16:05:49 +01:00
d56e020109 more random test fixes 2013-11-25 14:07:30 +01:00
c1febb74ff reduce randomness in test results 2013-11-25 13:29:54 +01:00
b081cf5e46 moved elasticsearch to extensions 2013-11-25 03:23:12 +01:00
f6811002ca Merge branch 'master' into elasticsearch
* master: (59 commits)
  updated ext composer.json for issue labels
  moved redis to extensions
  fixed whitespaces
  update composer to include sphinx
  Added initial steps about configuring DB-based RBAC
  Fixes #1297: CSRF not generated on error pages
  fixes #1158 mentioned @web alias in docs
  Merged RBAC draft into authorization
  "yii\sphinx\ActiveQuery" updated to throw exception on conflict between "asArray" and "snippetByModel" options.
  Code style and docs at "yii\sphinx\*" fixed.
  Docs for Sphinx extension updated.
  Redundant typecast removed from yii\sphinx\ActiveRecord::create()
  yii\sphinx\Command reworked to extend yii\db\Command. yii\sphinx\DataReader removed.
  Sphinx Active Record updated to be compatible with ActiveDataProvider.
  Sphinx documentation updated.
  Sphinx documentation updated.
  Sphinx has many relation test prepared.
  Sphinx Query refactored.
  Create relation methods added to Sphinx Active Record.
  Sphinx Query Builder updated to respect column types for where statements
  ...
2013-11-25 03:21:08 +01:00
8ac2b7364d moved redis to extensions 2013-11-25 02:27:04 +01:00
325fc28182 several fixes and cleanup 2013-11-24 22:46:13 +01:00
47705f0bc9 corrected assertations for test on #1310 2013-11-24 20:58:28 +01:00
b6b2689853 Merge branch 'master' into elasticsearch
* master:
  Fixes #1253
  Fixes #1310: ActiveRelation does not preserve order of items on find via() and viaTable()
  fixed limit/offset for sqlite,mysql and cubrid
  fixed test break.
  Fixed test break.
  Fixes #1301: fixed scenario generation when there are "except" scenarios.
  support for batch insert in sqlite older than 3.7.11
  Fixes #1298: supporting route with trailing slash.
  Fixes #1296: stricter check of dashes in route.
  Fixes #1307: move batchInsert() to base class.
  Update apps-advanced.md
2013-11-24 20:51:26 +01:00
af5d87ac4d renamed elasticsearch PK to id 2013-11-24 20:49:12 +01:00