File path: dist/twist/Core/Models/Database/TableStructure.model.php
Namespace: Twist\Core\Models\Database
primaryKey
— Set a field to be a primary key
Name | Description |
---|---|
$strField | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strField = 'foo';
//Call the function primaryKey with the example vars
$resTableStructure = new \Twist\Core\Models\Database\TableStructure();
$resTableStructure -> primaryKey($strField);