PHP code example of emteknetnz / silverstripe-varchar-polyfill
1. Go to this page and download the library: Download emteknetnz/silverstripe-varchar-polyfill 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/ */
emteknetnz / silverstripe-varchar-polyfill example snippets
yml
SilverStripe\ORM\DataObject:
fixed_fields:
ClassName: DBClassNameVarcharPolyfill
SilverStripe\ORM\FieldType\DBPolymorphicForeignKey:
composite_db:
Class: "DBClassNameVarcharPolyfill('SilverStripe\\ORM\\DataObject', ['index' => false])"