Commit Graph

4221 Commits

Author SHA1 Message Date
Qiang Xue
effc41c1cf minor refactoring. 2013-11-16 12:41:56 -05:00
Qiang Xue
256ceee7fe Merge pull request #1208 from cebe/ar-pk-public
Made ActiveRecord::isPrimaryKey() public
2013-11-16 09:36:12 -08:00
Carsten Brandt
4e80dc54c2 removed hard dependency of Pagination -> web\Request
issue #1207
2013-11-16 17:26:29 +01:00
egorpromo
c16c181247 Must be one method to get _GET. getGet() is just duplication 2013-11-16 23:25:44 +07:00
Carsten Brandt
f217948bf4 fixed test break after #1207 2013-11-16 17:08:47 +01:00
Carsten Brandt
0c505fcad8 Merge pull request #1207 from egorpromo/eliminate_get
Eliminating $_GET array
2013-11-16 08:04:17 -08:00
Carsten Brandt
77840adf65 Made ActiveRecord::isPrimaryKey() public
+ added tests and fixed behavior
2013-11-16 16:53:50 +01:00
Alexander Makarov
5b36503ca8 One less SQL query for login sequence in basic and advanced apps 2013-11-16 19:39:11 +04:00
Klimov Paul
d6ddfd7bb3 Methods "callSnippets()" and "callKeywords()" added to Sphinx Active Record 2013-11-16 17:14:15 +02:00
egorpromo
a446f3a586 Eliminating 2013-11-16 21:14:53 +07:00
Klimov Paul
0bc91f29e7 Sphinx Active Record relation handling provided. 2013-11-16 15:32:03 +02:00
Klimov Paul
f228f21541 "ActiveRelationInterface" applied to Sphinx Active Record. 2013-11-16 15:10:33 +02:00
Qiang Xue
b06caa297b Fixes #1206. 2013-11-16 08:00:39 -05:00
Klimov Paul
62968971b6 Sphinx unit test "ActiveRelationTest" created. 2013-11-16 14:54:24 +02:00
Qiang Xue
ffded7a1b5 array syntax fix. 2013-11-15 10:15:25 -05:00
Paul Klimov
fa08674261 "yii\sphinx\ActiveQuery" refactored.
"yii\sphinx\Schema" caching fixed.
2013-11-15 16:31:18 +02:00
Qiang Xue
542477c323 typo fix. 2013-11-15 09:18:30 -05:00
Qiang Xue
6992cc2c73 Fixes #1196. 2013-11-15 08:44:59 -05:00
Paul Klimov
93ca701a10 Merge branch 'master' of github.com:yiisoft/yii2 into sphinx 2013-11-15 12:17:22 +02:00
Paul Klimov
37862b6ee2 Unsupported "update counters" feature removed from Sphinx Active Record. 2013-11-15 11:30:24 +02:00
Qiang Xue
42a58870fe moved db interfaces and traits back to yii/db. 2013-11-14 22:01:26 -05:00
Qiang Xue
3106105ed0 changed color setting. 2013-11-14 15:36:38 -05:00
Klimov Paul
d6c388299d Sphinx ActiveRecord added as blank. 2013-11-14 22:12:31 +02:00
Qiang Xue
c7b430cf55 removed extra line. 2013-11-14 12:42:27 -05:00
Klimov Paul
6593c8cea4 Unit test for "yii\sphinx\Query" advanced 2013-11-14 19:39:08 +02:00
Klimov Paul
9459b44022 Composite primary key support removed from Sphinx schema. 2013-11-14 19:27:21 +02:00
Klimov Paul
47a2e211d6 Separated method "match" added to "yii\sphinx\Query" 2013-11-14 19:15:18 +02:00
Qiang Xue
8775e25ca6 Added readme and updated test helper classes. 2013-11-14 11:11:51 -05:00
Qiang Xue
220e6dc42d Added readme about tests. 2013-11-14 11:05:09 -05:00
Qiang Xue
cd7a4a6745 fixed functional test. 2013-11-14 10:36:35 -05:00
Qiang Xue
b44921126b Merge pull request #1097 from yiisoft/db-traits
Db traits
2013-11-14 05:27:00 -08:00
Carsten Brandt
8250cfbb0f reverted change of count() signature 2013-11-14 08:06:57 +01:00
Qiang Xue
368dd4b1d4 Allow Validator::except to be either a string or an array. 2013-11-13 19:50:19 -05:00
Carsten Brandt
71a619d2ae Merge pull request #1200 from zhuravljov/master
Fixed gii after merge #1184
2013-11-13 15:15:59 -08:00
KiTE
c5ee83bffb Fixed gii after merge #1184 2013-11-13 23:54:27 +02:00
Carsten Brandt
1acdbb741c moved indexBy() trait -> interface + removed findWith from interface 2013-11-13 19:57:32 +01:00
Carsten Brandt
51faa62eca updated interface and trait php-doc in yii\ar
[ci skip]
2013-11-13 19:52:14 +01:00
Klimov Paul
0275a2244f Option array value support added to "yii\sphinx\Query" 2013-11-13 20:48:05 +02:00
Carsten Brandt
ced7ee1b8a dataprovider: reset orderBy when counting
strict sql dbms like postgres would fail otherwise
2013-11-13 19:47:35 +01:00
Carsten Brandt
9448c3d471 added unit tests for active dataprovider and fixed query tests 2013-11-13 19:35:44 +01:00
Klimov Paul
aae221ddea Methods "replace()" and "batchReplace()" added to "yii\sphinx\Command" 2013-11-13 20:33:32 +02:00
Klimov Paul
0839ceb598 Parameter "options" added to "yii\sphinx\Command::update()" 2013-11-13 20:04:07 +02:00
Carsten Brandt
65338972c7 refactored ActiveRecord classes to use Interfaces and traits
this allows us to implement other activerecord implementations based on
NoSQL dbms
2013-11-13 18:42:50 +01:00
Qiang Xue
6fd0f0da19 Merge pull request #1197 from slavcodev/asset-dir
Move AppAsset from config to assets directory
2013-11-13 08:19:23 -08:00
slavcodev
4c4f7bd708 Move AppAsset from config to assets directory 2013-11-13 18:17:05 +02:00
Carsten Brandt
c8c7f59d69 Merge branch 'master' into db-traits
Updated AR classes with the latest changes from master to go on with
separation of AR query classes in traits.

Conflicts:
	framework/yii/db/ActiveQuery.php
	framework/yii/db/ActiveRecord.php
	framework/yii/db/ActiveRelation.php
2013-11-13 17:00:52 +01:00
Carsten Brandt
b8e31d50bb renamed AR trait classes 2013-11-13 16:50:30 +01:00
Paul Klimov
36da1617e8 "yii\sphinx\Query" has been composed, unit test for it added. 2013-11-13 17:10:56 +02:00
Paul Klimov
6b5b99764f Options support for "yii\sphinx\Command::callSnippet()" added. 2013-11-13 15:52:03 +02:00
Qiang Xue
5b0886f10b Allow "on" and "attributes" to take either array or string for validators. 2013-11-13 08:45:12 -05:00