mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #6461 from open-sausages/pulls/3/clarify-dataobject-record-constructor
Clarify DataObject::__construct()
This commit is contained in:
commit
c183324bcd
@ -425,8 +425,9 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
||||
/**
|
||||
* Construct a new DataObject.
|
||||
*
|
||||
* @param array|null $record This will be null for a new database record. Alternatively, you can pass an array of
|
||||
* field values. Normally this contructor is only used by the internal systems that get objects from the database.
|
||||
* @param array|null $record Used internally for rehydrating an object from database content.
|
||||
* Bypasses setters on this class, and hence should not be used
|
||||
* for populating data on new records.
|
||||
* @param boolean $isSingleton This this to true if this is a singleton() object, a stub for calling methods.
|
||||
* Singletons don't have their defaults set.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user