60 Commits

Author SHA1 Message Date
f4c38faf74 prepare for next release. 2014-04-13 21:22:29 -04:00
8bbcff70db prepare for 2.0.0-beta release. 2014-04-13 17:58:59 -04:00
0b29c9607d fixed broken API links [skip ci] 2014-04-09 22:22:49 -04:00
75154d351d Refactored AR find 2014-04-07 09:43:03 +04:00
865b71ef5e cleanup CHANGELOGs 2014-04-03 20:28:08 +02:00
44dbb2235a cleanup docs 2014-04-03 20:13:32 +02:00
54e08f3f01 fixed build break. 2014-04-03 11:57:49 -04:00
8b4dfcc876 Fixes #2955: Changed the signature of ActiveQuery constructors and ActiveRecord::createQuery() to simplify customizing ActiveQuery classes 2014-04-03 10:36:52 -04:00
cc0d5b6f94 added CHANGELOG lines 2014-04-02 19:22:43 +02:00
f4395206b7 reset dirty attributes after afterSave
so information about changed values is available in `afterSave`-event.

fixes #2892
2014-03-27 12:14:03 +01:00
1fdf17b59b cleanup redis AR 2014-03-26 16:37:54 +01:00
b25f1f65d7 added more ignores. 2014-03-24 22:33:50 -04:00
8c2e39235f Turn module and application into DI containers. 2014-03-17 23:57:01 -04:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
269d1303a9 Code style fixes 2014-03-08 20:47:04 -03:00
1b7e1cd027 Merge pull request #2605 branch 'feature' of https://github.com/mongosoft/yii2 into code-style
* 'feature' of https://github.com/mongosoft/yii2:
  returned back formatting language files
  code style. WHILE
  code style. FOR
  code style. FOREACH
  code style. operator IF
  @param, @var, @property and @return must declare types as boolean, integer, string, array or null
  short echo tags
  short array syntax

Conflicts:
	extensions/apidoc/commands/RenderController.php
	extensions/apidoc/models/BaseDoc.php
	extensions/apidoc/models/Context.php
	extensions/apidoc/templates/bootstrap/Renderer.php
	extensions/apidoc/templates/bootstrap/layouts/guide.php
	extensions/apidoc/templates/bootstrap/layouts/main.php
	extensions/apidoc/templates/bootstrap/views/index.php
	extensions/apidoc/templates/html/Renderer.php
	extensions/apidoc/templates/offline/views/index.php
	extensions/apidoc/templates/offline/views/offline.php
	extensions/apidoc/templates/online/views/index.php
	extensions/elasticsearch/Connection.php
	extensions/redis/ActiveQuery.php
	framework/base/ErrorException.php
	framework/helpers/BaseFileHelper.php
	tests/unit/framework/helpers/FileHelperTest.php
2014-03-07 21:54:44 +01:00
1982efbdfe many phpcs fixes 2014-03-05 00:22:55 +02:00
a94b2778b0 fix phpDoc LuaScriptBuilder build @throws 2014-03-04 23:13:53 +02:00
f849623359 code style. FOR 2014-03-03 21:52:21 +03:00
95ea1c20bb code style. FOREACH 2014-03-03 21:47:47 +03:00
a7a1bd8da0 Merge pull request #2578 from schmunk42/feature/update-composer-keywords
replaced keyword "yii" with "yii2" in composer.json files (fixes #2557)
2014-03-03 21:39:41 +03:00
b2f1b00bf2 code style. operator IF 2014-03-03 21:32:34 +03:00
c7e8d8b900 @param, @var, @property and @return must declare types as boolean, integer, string, array or null 2014-03-03 20:50:44 +03:00
6e7edfdf5b short array syntax 2014-03-03 20:21:55 +03:00
db8685ccad fixed a bunch of typos and errors 2014-02-27 23:18:27 +01:00
825a71c6df replaced keyword "yii" with "yii2" in composer.json files (fixes #2557) 2014-02-27 17:37:08 +01:00
505762d49c updated docs about active relation 2014-02-21 18:53:28 +01:00
cb8237c1b7 merged ActiveQueryInterface and ActiveRelatioInterface 2014-02-20 16:15:10 +01:00
e76fb238d4 added missing use statement 2014-02-20 13:53:24 +01:00
3b40d44909 made createQuery() config param optional 2014-02-20 05:54:47 +01:00
1708a36d95 WIP merge ActiveRelation into ActiveQuery
allow extending only one class to add scopes, fixes #2146

TODO:

- [ ] adjust guide docs
- [ ] adjust README files of extensions
- [ ] finish work and fix test breaks
2014-02-20 05:53:36 +01:00
4a201c7ad5 Removed unused variables 2014-02-07 13:39:35 +04:00
dd26d39dd8 Removed unused namespace imports 2014-02-07 13:26:00 +04:00
16e1aff41b renamed ActiveRecord::create() to populateRecord()
- refactored elasticsearch AR to make type and index available in
  instantiate(), issue #1313

fixes #2281
2014-02-03 14:07:12 +01:00
f6dd6fa2e9 Renamed ActiveRecordInterface::createActiveRelation() to createRelation() 2014-01-24 14:46:53 -05:00
b312b853dc added redis version req to readme
fixes #1875
2014-01-17 17:36:22 +01:00
796284cba1 reworked fix for #1993 2014-01-16 11:05:26 +01:00
81d23332df afterFind event in AR is now called after relations have been populated
fixes #1993
2014-01-16 10:28:58 +01:00
32d82f59bc Code style at redis readme fixed. 2014-01-14 12:02:46 +02:00
da9d544c54 psr-4 change. 2014-01-10 21:06:25 -05:00
41685a2409 moved extensions under yii. 2013-12-09 23:51:49 -05:00
e2b4708bbd added support for updateCounters to elasticsearch
issue #1313
2013-12-09 14:42:28 +01: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
48199cfc00 renamed redis tableName() to keyPrefix() 2013-11-30 15:30:05 +01:00
d0fc987f0b fixed test break 2013-11-30 03:15:35 +01:00
ff52f28d0a adjusted elasticsearch and redis AR to use BaseAR 2013-11-30 01:30:31 +01:00
a5e3c00d75 replaced inheritdoc tags. 2013-11-29 12:49:07 -05:00
83527e85ca made Model::attributes() non static again
- allows to have dynamic definition of attributes depended on the
  instance
- there was no real need for it to be static. Places that used it static
  have been refactored.

fixes #1318
2013-11-28 01:01:48 +01:00
2ff8ac3d61 fixed PhpDoc by swapping to {@inheritdoc} 2013-11-26 04:24:20 +02:00