110 Commits

Author SHA1 Message Date
20d6c65db2 Merge branch 'master' into sync-to-master. 2024-03-20 06:11:31 -03:00
c2e0485e0a Explain why DI fails sometimes and how to fix this (#20010) (#20108)
* Explain why DI fails sometimes and how to fix this (#20010)

* Explain why AR does not support DI by default and how to support it (#20010)
2024-02-17 01:11:56 +03:00
96f61b75f8 Fix #19902: Remove support for CUBRID 2023-07-18 17:00:54 +03:00
9bf7c96f26 Update db-active-record.md (#19250)
Complete the php command.
2022-02-19 11:07:44 +01:00
9bcc8c8e83 update links (en) (#19222)
Co-authored-by: Bizley <pawel@positive.codes>
2022-02-12 17:43:48 +01:00
0041f034fd [doc] Update PHP doc links (#18957)
* Replace https://secure.php.net with https://www.php.net

* Replace http://www.php.net with https://www.php.net
2021-10-19 14:50:26 +02:00
54664471e4 Update db-active-record.md interface link (#18944) 2021-10-10 11:18:39 +02:00
83b4191e6c Optimistic locking update (#18857)
The steps/example requires including the optimisticLock() function in the model that will return the field storing the version.
2021-08-30 09:54:28 +03:00
9f766ac779 Fix #18637: Mentioned that relation can not be named "relation" 2021-05-25 10:32:14 +03:00
82be8b61cf Replacing deprecated ::className() with ::class (#18671) 2021-05-22 23:14:54 +03:00
1d514e2ded Revert "Fix anchors in docs (#18344)"
This reverts commit 0f4b147352f2524f2a1530d419d13a8c8acd5069.
2020-11-05 14:14:35 +03:00
0f4b147352 Fix anchors in docs (#18344) 2020-11-01 17:51:16 +03:00
c6cba1dff3 Minor typo for ActiveRecord doc (#18246) 2020-08-20 18:46:59 +03:00
7e05e956b3 Fix typo in db-active-record.md (#17317) [skip ci] 2019-05-22 17:03:04 +03:00
bdb7c64910 Update to https protocol for php.net links (#17168) [skip ci]
* Updated php.net link for some MemCache properties [skip ci]

* Changed protocol to https for links to php.net in comments

* Changed protocol to https for links to php.net in code

* Changed www.php.net (http) to secure.php.net (https) in comments

* Changed www.php.net (http) to secure.php.net (https) in code

* Changed protocol to https for links to php.net in UPGRADE.md

* Changed protocol to https for links to pecl.php.net in comments

* Changed us.php.net to secure.php.net (https) in comments

* Changed protocol to https for links to php.net in docs

* Changed www.php.net (http) to secure.php.net (https) in docs

* Changed protocol to https for links to pecl.php.net in docs

* Changed ru/jp.php.net to secure.php.net (https) in docs

Don't sure about russian guide: is this links meant to be for guide on russian, or not?
2019-02-28 13:09:27 +03:00
e2eee94108 docs/guide/db-active-record.md fix (#16704) [skip ci] 2018-09-13 02:18:27 +03:00
71424a42fa docs/guide/db-active-record.md typo fixed (#16529) [skip ci] 2018-07-19 11:15:48 +08:00
e9ffcb2d12 Fixes #16456: Fixed OptimisticLockBehavior omitting HTML web forms 2018-07-05 21:16:36 +03:00
1945dc69c7 Fixes #9133: Added yii\behaviors\OptimisticLockBehavior 2018-05-12 14:43:13 +03:00
b1ba28dd19 guide/db-active-record.md line length fix [ci skip] 2018-04-26 10:27:40 +09:00
c3c982068d guide/db revised [ci skip] (#16159)
* guide/db-dao.md revised for 2.1 [ci skip]

* guide/db-query-builder.md source line length fix [ci skip]

* guide/db-active-record.md small fix [ci skip]
2018-04-25 09:49:23 +02:00
f8560b7a85 Added russian docs 2018-03-20 13:19:45 +02:00
a38302fdfd improved filtering condition on yii\db\ActiveRecord 2018-03-20 11:42:28 +01:00
d16586334d Fixes #7640: Implemented custom data types support. Added JSON support for MySQL and PostgreSQL, array support for PostgreSQL 2018-02-05 04:59:14 +07:00
c4b3e102db added documentation for chaining via() relations
see https://github.com/yiisoft/yii2/issues/10408#issuecomment-338881999
2017-10-24 10:22:23 +02:00
5522d1909c Clarify how joinWith()/innerJoinWith() deals with eager loading [skip ci] 2017-09-19 23:43:23 +02:00
93fbc55b23 Added edge case handling to aggregation example in docs [skip ci]
See https://github.com/yiisoft/yii2/issues/12491#issuecomment-276593948
2017-02-02 20:47:22 +03:00
8e12383048 docs/guide/db-active-record.md typo fix (#13335) [skip ci] 2017-01-06 16:27:36 +03:00
cb52c42cf5 more details about PHP 5 and 7 compatibility regarding Throwable 2016-12-17 00:43:48 +01:00
a3b6dfbb7b Catch \Throwable in critical places
Added catch `\Throwable` to be compatible with PHP7.
Added it in cases where object state needs to be kept consistent.

Mainly on transactions but also some other places where some values are
reset before exiting.

Most of them could probably be refactored by using `finally` in 2.1, as
that requires PHP 5.5.

fixes #12619
2016-12-16 02:20:02 +01:00
eb6ea11931 Fix docs about table prefixes (#13127)
* fixes #8354 to improve docs on table prefixes

* accents

* patched silverfires comments

* Update db-active-record.md

improved wording and added link about quoting.

* fix link to DAO guide
2016-12-05 13:57:07 +01:00
0d89bc5171 added example about alias for nesting joinWith calls
close #10878
2016-11-09 20:57:08 +01:00
685f16e8ef 📖 Updated guide pages - wrap true, false, null 2016-09-20 10:49:15 +03:00
34aeb019e5 Docs fix 2016-09-13 18:04:07 +03:00
2250612cb8 Docs about ActiveRecord aggregation updated 2016-09-09 22:35:09 +03:00
26621fc3b1 Guide: Customizing Query Classes [skip ci] (#12478)
Simplify text.
Fix CommentQuery::init() example.
Move tip for big projects after the first concrete usage example.
2016-09-06 18:45:07 +03:00
e1c7e9a86f Guide: Customizing Query Classes (#12464) [skip ci]
* Guide: Customizing Query Classes

Issue #12462
Clearly separate classes' definition.
Add information for default query condition with init().
Suggest using andOnCondition() instead of andWhere() as it didn't work
with the left join example provided.

* Guide: Customizing Query Classes

Typos fixes
2016-09-05 16:32:49 +03:00
5bdca129a4 improved guide about custom Query classes
issue #12462
2016-09-05 11:40:43 +02:00
bcdb53cb99 Docs for ActiveRecord typecast added 2016-09-02 13:30:28 +03:00
fbd79bb0af Cosmetic changes and typo,.. and issue (#12366) [skip ci]
* Cosmetic changes and typo

* '<br>' is removed
2016-08-28 21:51:45 +03:00
b4331032b6 Cosmetic changes 2016-08-26 16:55:56 +03:00
d1d5832e7d Fix typo [skip ci] (#12169)
(reverted from commit a3cd5542799f64e8b61b4f8b5272701e910eee72)
2016-08-16 13:01:27 +03:00
a3cd554279 Fix typo [skip ci] (#12169) 2016-08-16 10:40:48 +03:00
c55b20a3d2 fix misspell (theses -> these) in docs/guide/db-active-record.md (#11688) [skip ci] 2016-06-05 22:01:57 +02:00
60f6ecf063 yii\db\BaseActiveRecord now triggers event EVENT_AFTER_REFRESH` after a record is refreshed
fixes #9604
close #10867
2016-04-22 17:14:41 +02:00
5f19e7aa41 Added Alias Syntax for joinWith()
Add alias syntax to joinWith(), e.g. joinWith('author a').
No need to know the table name for defining an alias for the relation.

fixes #2377, alternative to #8788, which allows later implementation of
getting alias and column name ambiguation.

depends on #10813 to be merged first.
2016-02-12 12:35:28 +01:00
8da214d264 more docs for #10701 2016-01-29 20:59:02 +01:00
89f677ba2a Guide db-active-record fixed code example 2016-01-23 09:35:21 +02:00
c94bd36e89 Fixed a wrong method calling.
If using `all()`, the value of `$customer` will be an array of
`Customer` instances, not a `Customer` instance.  Consequently,

```
$customer->unlink('orders', $customer->orders[0]);
```

will throw a PHP Fatal Error: Call to a member function unlink() on array.
2016-01-23 11:11:02 +08:00
787dafbf73 revise DB documentation 2015-11-30 13:51:24 +01:00