9b1c2c8064
Fixes #1586 : QueryBuilder::buildLikeCondition()
will now escape special characters and use percentage characters by default
2013-12-29 13:04:02 -05:00
795c74100d
reverted #1598 and added a test for it
2013-12-26 01:18:55 +01:00
488918d03c
Refinement in comments
...
I checked this using XDebug, and the function actually returns null (which is something different than false). I assume it is the comment that should be changed, and not the code itself...
2013-12-23 12:00:12 +01: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
b2d9166927
refactored scalar query functions to share common code
2013-12-17 16:14:27 +01:00
124a73a598
make Query reuseable
...
fixes #1545
2013-12-17 15:51:27 +01:00
24621c3dd1
improved doc
2013-12-02 07:29:46 -05:00
79866ee3e0
Improved Query::select() doc.
2013-11-29 19:26:01 -05:00
679da53390
polished Query API
2013-11-23 18:07:19 +01:00
8250cfbb0f
reverted change of count() signature
2013-11-14 08:06:57 +01:00
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
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
b8e31d50bb
renamed AR trait classes
2013-11-13 16:50:30 +01:00
9b95a81b0c
Fixed the rest phpDocs [skip ci]
2013-11-12 03:13:37 +00:00
4653526262
moved common parts of db ActiveRelation and Query to traits
...
these parts can be reused in other ActiveRecord implementations
2013-10-29 12:20:52 +01:00
1f6a823073
Short array syntax
2013-10-18 20:52:38 +04:00
6488fe47ec
Better phpdoc for chained method calls
2013-10-10 13:34:16 +04:00
6dba4da3ed
Fixes #828 : refactored QueryBuilder::build()
2013-08-29 16:47:48 -04:00
7fd68199e5
Fix SORT_DESC comment in Query.php
2013-07-29 17:40:58 +03:00
0cbb05d7a2
Added Query::indexBy
2013-07-11 10:04:54 -04:00
f03cdf0a47
renamed Command::queryRow() to queryOne().
2013-07-09 08:01:10 -04:00
c4a57a9f6c
Refactored Query and ActiveQuery.
...
Finished ActiveDataProvider.
2013-07-09 07:59:08 -04:00
f72105166c
reorganized the main repo to satisfy PSR-0.
2013-05-21 21:19:05 -04:00