diff --git a/src/Adaptor/CakeFabricateAdaptor.php b/src/Adaptor/CakeFabricateAdaptor.php index 14da084..d0f520b 100644 --- a/src/Adaptor/CakeFabricateAdaptor.php +++ b/src/Adaptor/CakeFabricateAdaptor.php @@ -105,7 +105,10 @@ public function create($modelName, $attributes, $recordCount) $entities = $table->newEntities($attributes, ['validate' => $this->options[self::OPTION_VALIDATE]]); $table->connection()->transactional(function () use ($table, $entities) { foreach ($entities as $entity) { - $ret = $table->save($entity, ['checkRules' => $this->options[self::OPTION_CHECK_RULES], 'atomic' => false]); + $ret = $table->save($entity, [ + 'checkRules' => $this->options[self::OPTION_CHECK_RULES], + 'atomic' => false + ]); if (!$ret) { return false; }