Commit 8af941fb by Carsten Brandt

added note about usage to AR::instantiate()

fixes #2370
parent 677ee94b
......@@ -283,6 +283,7 @@ class ActiveRecord extends BaseActiveRecord
* Creates an active record instance.
*
* This method is called together with [[populateRecord()]] by [[ActiveQuery]].
* It is not meant to be used for creating new records directly.
*
* You may override this method if the instance being created
* depends on the row data to be populated into the record.
......
......@@ -1014,6 +1014,7 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
* Creates an active record instance.
*
* This method is called together with [[populateRecord()]] by [[ActiveQuery]].
* It is not meant to be used for creating new records directly.
*
* You may override this method if the instance being created
* depends on the row data to be populated into the record.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment