PHP code example of csoellinger / silverstripe-model-annotations-task
1. Go to this page and download the library: Download csoellinger/silverstripe-model-annotations-task library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
csoellinger / silverstripe-model-annotations-task example snippets
class Player extends DataObject
{
private static $db = [
'Name' => 'Varchar(255)',
];
private static $has_many = [
'Jobs' => 'Job',
];
}
/**
* @property string $Name Name...
*
* @method HasManyList Jobs() Get jobs
*/
class Player extends DataObject
{
private static $db = [
'Name' => 'Varchar(255)',
];
private static $has_many = [
'Jobs' => 'Job',
];
}