/** * PrimaryKeyField constructor. */ public function __construct() { parent::__construct(); $this->min(1)->readOnly(true)->required(false); }
function __construct ($name, $options = array()) { // Force some properties $options['null'] = false; $options['editable'] = false; // Call the default constructor parent::__construct($name, $options); }