mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
FIX GraphQL4 config, add table names to pages
This commit is contained in:
parent
5dd2c795d2
commit
3c83a61988
@ -23,36 +23,37 @@ SilverStripe\Control\Director:
|
||||
SilverStripe\GraphQL\Schema\Schema:
|
||||
schemas:
|
||||
frameworktest:
|
||||
modelConfig:
|
||||
type_mapping:
|
||||
SilverStripe\FrameworkTest\Model\Company: Company
|
||||
SilverStripe\FrameworkTest\Model\Employee: Employee
|
||||
models:
|
||||
SilverStripe\FrameworkTest\Model\Company:
|
||||
fields:
|
||||
ID: true
|
||||
Name: true
|
||||
Category: true
|
||||
Revenue: true
|
||||
CEO: true
|
||||
Employees: true
|
||||
PastEmployees: true
|
||||
operations:
|
||||
read: true
|
||||
update: true
|
||||
create: true
|
||||
delete: true
|
||||
readOne: true
|
||||
SilverStripe\FrameworkTest\Model\Employee:
|
||||
fields:
|
||||
ID: true
|
||||
Name: true
|
||||
Biography: true
|
||||
DateOfBirth: true
|
||||
Category: true
|
||||
operations:
|
||||
read: true
|
||||
update: true
|
||||
create: true
|
||||
delete: true
|
||||
readOne: true
|
||||
config:
|
||||
modelConfig:
|
||||
type_mapping:
|
||||
SilverStripe\FrameworkTest\Model\Company: Company
|
||||
SilverStripe\FrameworkTest\Model\Employee: Employee
|
||||
models:
|
||||
SilverStripe\FrameworkTest\Model\Company:
|
||||
fields:
|
||||
ID: true
|
||||
Name: true
|
||||
Category: true
|
||||
Revenue: true
|
||||
CEO: true
|
||||
Employees: true
|
||||
PastEmployees: true
|
||||
operations:
|
||||
read: true
|
||||
update: true
|
||||
create: true
|
||||
delete: true
|
||||
readOne: true
|
||||
SilverStripe\FrameworkTest\Model\Employee:
|
||||
fields:
|
||||
ID: true
|
||||
Name: true
|
||||
Biography: true
|
||||
DateOfBirth: true
|
||||
Category: true
|
||||
operations:
|
||||
read: true
|
||||
update: true
|
||||
create: true
|
||||
delete: true
|
||||
readOne: true
|
||||
|
@ -15,6 +15,8 @@ if (!class_exists(Page::class)) {
|
||||
*/
|
||||
class MultiTabPage extends Page
|
||||
{
|
||||
private static $table_name = 'MultiTabPage';
|
||||
|
||||
private static $db = [
|
||||
'SecondTabFirstField' => 'Varchar(50)',
|
||||
'ThirdTabFirstField' => 'Varchar(50)',
|
||||
|
@ -14,6 +14,8 @@ if (!class_exists(Page::class)) {
|
||||
*/
|
||||
class SingleTabPage extends Page
|
||||
{
|
||||
private static $table_name = 'SingleTabPage';
|
||||
|
||||
public function getCMSValidator()
|
||||
{
|
||||
return new RequiredFields([
|
||||
|
Loading…
Reference in New Issue
Block a user