42 Commits

Author SHA1 Message Date
a38302fdfd improved filtering condition on yii\db\ActiveRecord 2018-03-20 11:42:28 +01:00
b37f361ad7 Fixed possible SQL injection through ActiveRecord::findOne() 2018-03-20 11:20:56 +01:00
d68789a195 Fixes #13779, fixes #5786
- #13779: Fixed `yii\db\ActiveRecord::joinWith()` unable to use relation defined via attached behavior.
- #5786: Allowed to use custom constructors in ActiveRecord-based classes.
2017-08-29 15:13:28 +03:00
98a71d8b0d Adjust QueryInterface and QueryTrait types on where() (#14714)
these did never allow a string condition. Only SQL Query and AR implementation do.

fixes #14496
2017-08-24 10:59:20 +02:00
79ad74f763 Fixed wrong PHPDoc annotaion in ActiveRecordInterface
Closes #14496
2017-08-24 11:06:17 +03:00
5a8c3d537b Enable phpdoc_summary rule in php-cs-fixer config (#14675)
* Enable `phpdoc_summary` rule in php-cs-fixer config.

* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00
02ffbb28ec update AR docs 2017-04-18 23:35:16 +02:00
cd8b98bb92 Added note to findOne and findAll docs (#14002) [skip ci]
Added note to findOne and findAll docs to clearly state that complex conditions are not supported.
2017-04-18 14:39:55 +03:00
7a3a342127 Fix errors reported by apidoc extension. (#12986) 2016-11-13 14:51:21 +01:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
1433d8a017 added example for relation name to AR phpdoc
fixes #12802
2016-10-24 02:16:54 +02:00
0f568807e5 Updated PHPDoc in ActiveRecordInterface 2016-08-26 22:11:09 +03:00
Sam
fc8708b712 Added missing function to ActiveRecordInterface interface.
close #9854
2016-04-22 14:50:30 +02:00
30f003381d revised AR documentation
fixed some incorrectness in update() and insert() and also fixes #8761
2015-06-12 00:55:12 +02:00
e6b09bb82f Fixes #7888 doc fix [skip ci] 2015-04-26 23:03:26 -04:00
89d1e55f91 phpdoc fix, close #7404 2015-02-24 13:26:01 +01:00
6cfbd8d548 Fixed ActiveRecordInterface phpDoc 2015-01-27 01:57:45 +03:00
08e54c522c Fixed ActiveRecordInterface phpDoc 2015-01-27 01:44:35 +03:00
cba52e3c5e Fixes #5382: renamed "pivot table" to "junction table" since it's correct term to use 2014-10-07 01:13:17 +04:00
d4237b8e50 Update ActiveRecordInterface.php
fixes #3026
2014-07-21 16:27:46 +02:00
03efbc4ca8 Added getDb() to ActiveRecordInterface in order for BaseActiveRecord to have stricter contract 2014-06-09 01:11:11 +04:00
9e0a157fa5 improved docs for AR::findAll() 2014-05-12 01:19:55 +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
0b29c9607d fixed broken API links [skip ci] 2014-04-09 22:22:49 -04:00
fa767ceaca renamed attributes to attributeNames in model
fixes #3034
2014-04-09 18:54:53 +02:00
e16a3e6192 Fixed typo in phpDoc for findAll function 2014-04-08 05:55:09 -05:00
0e143338d7 Finished refactoring find() . 2014-04-07 16:29:12 -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
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
9b8ffdfacc Fixes #2653: Fixed the bug that unsetting an unpopulated AR relation would trigger exception (qiangxue) 2014-03-06 20:38:55 -05:00
80cc310895 updated phpdoc references of BaseAR to the interface
fixes #2623
2014-03-05 02:32:45 +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
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
262189533a huge amount of documentation link fixes 2014-01-28 17:54:40 +01:00
f6dd6fa2e9 Renamed ActiveRecordInterface::createActiveRelation() to createRelation() 2014-01-24 14:46:53 -05:00
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00