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
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