MockDataObject::fill
Populates all of the native database fields and optionally fills in data relations.
Accepts an array of settings, ex: array( 'only_empty' => true, // only fill in empty fields 'include_relations' => true, // Include has_many and many_many relations 'relation_create_limit' => 5, // If there aren't any existing records for many_many or has_one relations, limit creation to this number 'download_images' => false, // Don't download images from the web. Use existing. );
Signature
public function fill([array
$config = ] )
Parameters
$config
— array- The configuration options
Returns
- DataObject