Carsten Brandt
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
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Michael Härtl
5522d1909c
Clarify how joinWith()/innerJoinWith() deals with eager loading [skip ci]
2017-09-19 23:43:23 +02:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Alexander Makarov
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
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Nobuo Kihara
8e12383048
docs/guide/db-active-record.md typo fix ( #13335 ) [skip ci]
2017-01-06 16:27:36 +03:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Carsten Brandt
cb52c42cf5
more details about PHP 5 and 7 compatibility regarding Throwable
2016-12-17 00:43:48 +01:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Carsten Brandt
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
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Boudewijn Vahrmeijer
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
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Carsten Brandt
0d89bc5171
added example about alias for nesting joinWith calls
...
close #10878
2016-11-09 20:57:08 +01:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
SilverFire - Dmitry Naumenko
685f16e8ef
📖 Updated guide pages - wrap true, false, null
2016-09-20 10:49:15 +03:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Klimov Paul
34aeb019e5
Docs fix
2016-09-13 18:04:07 +03:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Paul Klimov
2250612cb8
Docs about ActiveRecord aggregation updated
2016-09-09 22:35:09 +03:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
CedricYii
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
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
CedricYii
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
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Carsten Brandt
5bdca129a4
improved guide about custom Query classes
...
issue #12462
2016-09-05 11:40:43 +02:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Klimov Paul
bcdb53cb99
Docs for ActiveRecord typecast added
2016-09-02 13:30:28 +03:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Roman Grinyov
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
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Roman Grinyov
b4331032b6
Cosmetic changes
2016-08-26 16:55:56 +03:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Alexander Makarov
d1d5832e7d
Fix typo [skip ci] ( #12169 )
...
(reverted from commit a3cd554279 )
2016-08-16 13:01:27 +03:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Dmitriy Makarov
a3cd554279
Fix typo [skip ci] ( #12169 )
2016-08-16 10:40:48 +03:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
DumpOfTheVar
c55b20a3d2
fix misspell (theses -> these) in docs/guide/db-active-record.md ( #11688 ) [skip ci]
2016-06-05 22:01:57 +02:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
raoul
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
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Carsten Brandt
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
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Carsten Brandt
8da214d264
more docs for #10701
2016-01-29 20:59:02 +01:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
SilverFire - Dmitry Naumenko
89f677ba2a
Guide db-active-record fixed code example
2016-01-23 09:35:21 +02:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
drodata
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
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Carsten Brandt
787dafbf73
revise DB documentation
2015-11-30 13:51:24 +01:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Alexander Makarov
7094145547
Update db-active-record.md
...
PSR-2 4.1:
"Property names SHOULD NOT be prefixed with a single underscore to indicate protected or private visibility." (reverted from commit db7441f866 )
2015-11-05 23:20:24 +03:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Evgeniy Tkachenko
db7441f866
Update db-active-record.md
...
PSR-2 4.1:
"Property names SHOULD NOT be prefixed with a single underscore to indicate protected or private visibility."
2015-11-05 22:19:00 +03:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Angel Guevara
34c940de50
Fixes #10096 : Added examples for AR extra field values taken from internal data to AR guide
2015-11-05 21:36:02 +03:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Bizley
ec9e8b244f
db-active-record [PL]
...
close #9552
2015-08-30 22:26:35 +02:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Carsten Brandt
0959b5d28e
updated docs about dirty attributes
...
fixes #8619
2015-06-01 21:26:47 +02:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Craig
88bf099563
typo (plural)
...
$customer -> $customers
2015-05-11 15:50:02 +01:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Carsten Brandt
b4062ab246
put more stress on the difference of relation property vs. method
...
fixes #8245
2015-05-01 14:13:31 +02:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Klimov Paul
13b10bdb9a
Docs about 'selecting extra fields' with Active Record added
2015-04-23 12:44:43 +03:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
a-t
21058a1649
Update db-active-record.md
...
Fixed a few typos and mistakes
2015-04-15 11:57:29 +03:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Qiang Xue
6fe5d08894
doc improvement [skip ci]
2015-04-09 23:13:37 -04:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Qiang Xue
1cd6047174
Fixes #7998 . [skip ci]
2015-04-07 08:30:03 -04:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
SenG
91d09af0ee
Update db-active-record.md
...
typo -- missing close bracket -- fixed.
2015-04-01 10:26:56 +05:30
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Alexander Kozhevnikov
0d455ca21c
Little timesaver tip for optimisticLock use [skip ci]
...
Those who follow this 4 simple steps may forget about need to validate 'version' field. Let us save their time.
2015-03-31 01:07:13 +03:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Alexander Kozhevnikov
8eb34e918a
Valid function name in example of optimisticLock [skip ci]
...
close #7921
2015-03-31 00:01:24 +02:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Nobuo Kihara
a4013d5089
reversed the wrong "fix" [ci skip]
2015-03-28 20:52:05 +09:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Nobuo Kihara
e66a6a9e83
docs/guide/db-active-record.md - typo fixed [ci skip]
2015-03-28 11:23:11 +09:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Antoine Mercier-Linteau
87a1da1568
Fixed markup and text mistakes and inconsistencies in the documentation
2015-03-21 16:24:29 -04:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Carsten Brandt
43469d81b6
typo
2015-03-20 16:12:55 +01:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Carsten Brandt
2a23520618
added documentation about handling date values
...
fixes #6530
fixes #5857
relates to #3973
2015-03-20 16:06:12 +01:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Qiang Xue
99a612e1a6
Finished AR guide [skip ci]
2015-03-15 01:26:06 -04:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Qiang Xue
c9d13d6df5
AR guide WIP [skip ci]
2015-03-14 20:48:11 -04:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Qiang Xue
e25d4a919c
ar guide WIP [skip ci]
2015-03-12 17:17:01 -04:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Qiang Xue
7721df4cf8
ar guide WIP [skip ci]
2015-03-10 23:24:12 -04:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)
Qiang Xue
89d51b244e
ar guide WIP [skip ci]
2015-03-10 16:49:11 -04:00
octicon-copy(16/)
octicon-file-diff(16/)
octicon-file-code(16/)