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
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 db7441f8668e364f208a0a58dab1437adddc57cd)
2015-11-05 23:20:24 +03:00
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
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
ec9e8b244f
db-active-record [PL]
...
close #9552
2015-08-30 22:26:35 +02:00
0959b5d28e
updated docs about dirty attributes
...
fixes #8619
2015-06-01 21:26:47 +02:00
88bf099563
typo (plural)
...
$customer -> $customers
2015-05-11 15:50:02 +01:00
b4062ab246
put more stress on the difference of relation property vs. method
...
fixes #8245
2015-05-01 14:13:31 +02:00
13b10bdb9a
Docs about 'selecting extra fields' with Active Record added
2015-04-23 12:44:43 +03:00
21058a1649
Update db-active-record.md
...
Fixed a few typos and mistakes
2015-04-15 11:57:29 +03:00
6fe5d08894
doc improvement [skip ci]
2015-04-09 23:13:37 -04:00
1cd6047174
Fixes #7998 . [skip ci]
2015-04-07 08:30:03 -04:00
91d09af0ee
Update db-active-record.md
...
typo -- missing close bracket -- fixed.
2015-04-01 10:26:56 +05:30
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
8eb34e918a
Valid function name in example of optimisticLock [skip ci]
...
close #7921
2015-03-31 00:01:24 +02:00
a4013d5089
reversed the wrong "fix" [ci skip]
2015-03-28 20:52:05 +09:00
e66a6a9e83
docs/guide/db-active-record.md - typo fixed [ci skip]
2015-03-28 11:23:11 +09:00
87a1da1568
Fixed markup and text mistakes and inconsistencies in the documentation
2015-03-21 16:24:29 -04:00
43469d81b6
typo
2015-03-20 16:12:55 +01:00
2a23520618
added documentation about handling date values
...
fixes #6530
fixes #5857
relates to #3973
2015-03-20 16:06:12 +01:00
99a612e1a6
Finished AR guide [skip ci]
2015-03-15 01:26:06 -04:00
c9d13d6df5
AR guide WIP [skip ci]
2015-03-14 20:48:11 -04:00
e25d4a919c
ar guide WIP [skip ci]
2015-03-12 17:17:01 -04:00
7721df4cf8
ar guide WIP [skip ci]
2015-03-10 23:24:12 -04:00
89d51b244e
ar guide WIP [skip ci]
2015-03-10 16:49:11 -04:00
bd20b30b89
AR guide WIP [skip ci]
2015-03-09 22:43:24 -04:00
747fc6cb5c
docs/guide/db-active-record.md - sample code fixed [ci skip]
2015-03-10 07:22:06 +09:00
0cd16d417e
Fixes #7628
2015-03-09 00:13:22 +03:00
20253231ea
AR doc WIP [skip ci]
2015-03-08 11:04:07 -04:00
df90266275
AR guide WIP [skip ci]
2015-03-07 22:59:26 -05:00
36bebbfefb
use id instead of name for anchor references in the guide
...
fixes #7013
2015-01-25 22:13:16 +01:00
23279fafc9
Fixed typo
2015-01-08 22:02:56 +08:00
228f810912
a note about database naming style
...
fixes #6760
2015-01-05 20:52:29 +01:00
b28629e26f
docs/guide/output-data-widgets.md link correction [ci skip]
2014-12-20 09:24:41 +09:00
107a5208f5
Fixes #6372 . [skip ci]
2014-12-09 16:23:04 -05:00
d2e413c809
docs/guide/db-active-record.md - typo [ci skip]
2014-12-09 00:24:04 +09:00
d6f0419a6b
docs/guide/db-active-record.md - small fixes [ci skip]
2014-12-09 00:22:56 +09:00
e486061052
docs/guide/db-active-record.md - small change [ci skip]
2014-12-09 00:22:55 +09:00
aa92512974
improved doc [skip ci]
2014-11-23 13:14:42 -05:00
32302395b6
Update db-active-record.md
...
Additional minor syntax changes.
2014-11-23 11:40:07 -03:00
2210a47c0a
Update db-active-record.md
...
Minor syntax changes.
2014-11-21 21:10:39 -03:00
437da2a226
Added note about the fact that both findOne() and one() aren't adding LIMIT 1 to the query
2014-11-20 19:34:42 +03:00
db56384fcf
improved documentation about loadDefaultValues()
...
issue #6126
2014-11-20 11:50:32 +01:00
255cf947a3
Typo fix in guide
2014-11-11 11:24:38 +03:00