We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bb3a40 commit 6543565Copy full SHA for 6543565
src/Repository.php
@@ -37,6 +37,9 @@ public function create($data)
37
foreach($this->space->getFormat() as $row) {
38
if(array_key_exists($row['name'], $data)) {
39
$instance->{$row['name']} = $data[$row['name']];
40
+ if($data[$row['name']] instanceof Entity) {
41
+ $instance->{$row['name']} = $instance->{$row['name']}->id;
42
+ }
43
}
44
45
0 commit comments