154 Commits

Author SHA1 Message Date
d92281dcda refactored ActiveRecord::unlinkAll() to work will noSQL
issue #3520
2014-06-04 14:28:57 +02:00
a5c4a0ebb4 Adjusted BaseActiveRecord code for better noSQL compatibility 2014-06-02 20:13:48 +04:00
5599a86a81 Add support all type relation 2014-05-22 00:53:12 +03:00
e11ec66b06 add change to CHANGELOG,and mini refactoring 2014-05-20 22:20:51 +03:00
a047bf2cd6 Method to unlink all relationship many to many in current model 2014-05-20 21:39:16 +03:00
d041116b94 BaseActiveRecord::findAll() comment fix 2014-05-06 16:18:01 +04:00
76d8e2b5b3 code style, fixes #3140 2014-04-17 13:24:16 +02:00
c1445871f4 Correction of many errors code inspection.
Adjustments code according to the standards.
Adding missing PHPDoc comment.
2014-04-16 19:29:07 -03:00
33a00ecd7c updated base AR phpdoc for findOne() and findAll() 2014-04-11 17:45:22 +02:00
c6e1a2f02f Merge branch 'master' of github.com:yiisoft/yii2
* 'master' of github.com:yiisoft/yii2: (79 commits)
  Refactored app bootstrap logic.
  Update authorization.md
  Fixes #3052: Fixed the issue that cache dependency data is not reused when `reusable` is set true
  start debug logging only if debug runs when bootstrap.
  Update finnish translation
  Add ODBC support to yii\db\Connection
  updated error handler and requirement checker links.
  fixed broken API links [skip ci]
  added more doc [skip ci]
  update class map.
  Fixes #2034: Added `ContentNegotiator` to support response format and language negotiation
  renamed attributes to attributeNames in model
  updated phpdoc
  Removed `Application::preload` in favor of `Application::bootstrap`
  Update module-debug.md
  Update model.md
  Fixes
  Update basics.md
  typo fix [skip ci]
  Added `HtmlResponseFormatter` and `JsonResponseFormatter`
  ...
2014-04-10 22:22:36 +02:00
3c400dbca8 fixed file PHPdoc
issue #3026
2014-04-10 22:10:59 +02:00
fa767ceaca renamed attributes to attributeNames in model
fixes #3034
2014-04-09 18:54:53 +02:00
0e143338d7 Finished refactoring find() . 2014-04-07 16:29:12 -04:00
b7d6f6141a Added isAssociative() and isIndexed() to yii\helpers\ArrayHelper 2014-04-07 16:02:55 -04:00
75154d351d Refactored AR find 2014-04-07 09:43:03 +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
338b6aa7d3 Refactored ActiveRecord::find() so that find(null) will also return an ActiveRecord instance instead of ActiveQuery. 2014-03-30 19:01:02 -04:00
c73cfe147f Fixed inconsistencies with setting old attributes and pks
issue #2892
2014-03-27 13:17:54 +01: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
8a6eceb852 phpdoc fixes 2014-03-26 15:13:11 +01:00
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
6fff5662df better use @see for See in phpdoc 2014-03-11 05:38:35 +01: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
4f8c037a21 fixed unset. 2014-03-06 21:18:28 -05:00
9b8ffdfacc Fixes #2653: Fixed the bug that unsetting an unpopulated AR relation would trigger exception (qiangxue) 2014-03-06 20:38:55 -05:00
11baf61977 Fixed unsetting relation bug. 2014-03-06 19:19:23 -05:00
e38c4225b2 Merge commit 'bdce87b242abbff800020deba0a5c2031fc2efe7' into feature-restapi
Conflicts:
	framework/db/BaseActiveRecord.php
2014-03-06 00:00:33 -05:00
3f42d5826a REST wip. 2014-03-05 13:29:24 -05:00
f34a0c63a1 fixed phpdoc 2014-03-05 02:35:01 +01:00
80cc310895 updated phpdoc references of BaseAR to the interface
fixes #2623
2014-03-05 02:32:45 +01: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
6c88183be0 Merge commit 'd3ff343e5ee02a14dd17d6cf947aa7f52857474a' into feature-restapi
Conflicts:
	framework/helpers/BaseArrayHelper.php
2014-02-28 18:22:10 -05:00
9beba31fc0 rest WIP 2014-02-28 08:34:51 -05:00
f9024dbec1 fixed Migration::execute() to use params correctly 2014-02-24 17:37:43 +01:00
5ee50a8454 Merge pull request #2497 from yiisoft/merge-query-and-relation2
WIP merge ActiveRelation into ActiveQuery
2014-02-21 19:00:45 +01:00
8f491f2836 moved @include tags of api docs directly into the class 2014-02-20 21:30:47 +01:00
cb8237c1b7 merged ActiveQueryInterface and ActiveRelatioInterface 2014-02-20 16:15:10 +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
c92a260a3d Fixes #2415: Added support for inverse relations 2014-02-18 19:43:05 -05:00
abb2a0db97 minor improvement of label generation. 2014-02-15 14:25:32 -05:00
da16f508c2 #2436 override the function getAttributeLabel in BaseActiveRecord to receive label of the attribute, which looks like relatedMode.attribute, from the related model 2014-02-15 12:19:27 +01:00
44f5c73111 #2436 override the function getAttributeLabel in BaseActiveRecord to receive label of the attribute, which looks like relatedMode.attribute, from the related model 2014-02-15 12:08:10 +01:00
e79af9117e ensure populateRelation() is called for lazy loading. 2014-02-14 10:07:19 -05:00
8af941fb53 added note about usage to AR::instantiate()
fixes #2370
2014-02-10 10:51:16 +01: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
262189533a huge amount of documentation link fixes 2014-01-28 17:54:40 +01:00
ee8c0404bf minor code style and phpdoc fix 2014-01-25 14:07:07 +04:00
f6dd6fa2e9 Renamed ActiveRecordInterface::createActiveRelation() to createRelation() 2014-01-24 14:46:53 -05:00
f21d2ce757 Better phpdoc 2014-01-19 03:44:33 +04:00