38 public static function attachField($property, $propertyValueEntity)
40 switch ($property->getPropertyType())
44 $propertyValueEntity->addField(
new StringField(
'VALUE'));
49 $propertyValueEntity->addField(
new FloatField(
'VALUE'));
54 $propertyValueEntity->addField(
new IntegerField(
'VALUE'));
57 $propertyValueEntity->addField(
new Reference(
58 'FILE', FileTable::class,
59 Join::on(
"this.VALUE",
'ref.ID')
65 $propertyValueEntity->addField(
new IntegerField(
'VALUE'));
69 $refIblock->fill(
'API_CODE');
71 if($refIblock->getApiCode() <>
'')
73 $refEntityName = $refIblock->getEntityDataClass();
75 $propertyValueEntity->addField(
76 new Reference(
'ELEMENT', $refEntityName, Join::on(
"this.VALUE",
'ref.ID'))
83 $propertyValueEntity->addField(
new IntegerField(
'VALUE'));
86 $propertyValueEntity->addField(
new Reference(
87 'SECTION', SectionTable::class,
88 Join::on(
"this.VALUE",
'ref.ID')
94 $propertyValueEntity->addField(
new IntegerField(
'VALUE'));
97 $propertyValueEntity->addField(
new Reference(
99 PropertyEnumerationTable::class,
100 Join::on(
'this.VALUE',
'ref.ID')