Skip to content

Commit

Permalink
#68 Multi-Checkbox mit pflegbaren Optionswerten für Many2Many
Browse files Browse the repository at this point in the history
  • Loading branch information
areanet-foschmid authored and areanet committed Jul 24, 2018
1 parent 124634b commit c8db24d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion appcms/areanet/PIM/Classes/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ public function doUpdate($entityName, $id, $data, $disableModifiedTime, $current


foreach($data as $property => $value){
if($property == 'modified' || $property == 'created') continue;


if(!isset($schema[ucfirst($entityName)]['properties'][$property])){
throw new \Exception("Unkown property $property for entity $entityPath", 500);
Expand Down Expand Up @@ -1025,7 +1027,7 @@ public function getSchema(){
$object = new $className();
$reflect = new \ReflectionClass($object);
$props = $reflect->getProperties(\ReflectionProperty::IS_PUBLIC | \ReflectionProperty::IS_PROTECTED);
$entityName = $entity;
$entityName = substr($entity, 4);

$defaultValues = $reflect->getDefaultProperties();

Expand Down

0 comments on commit c8db24d

Please sign in to comment.