|
Schema::createCollectionAdd collection to schema Description
public mysql_xdevapi\Collection mysql_xdevapi\Schema::createCollection(string
$name , string $validate = ?)Create a collection within the schema. Parameters
Return ValuesThe Collection object. Changelog
ExamplesExample #1 mysql_xdevapi\Schema::createCollection example
The above example will output something similar to: Array ( [fruit] => mysql_xdevapi\Table Object ( [name] => fruit ) ) Array ( [trees] => mysql_xdevapi\Collection Object ( [name] => trees ) ) Example #2 mysql_xdevapi\Schema::createCollection example
|