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