diff --git a/Job/Category.php b/Job/Category.php index 3f76b22e..8d9f0bd4 100755 --- a/Job/Category.php +++ b/Job/Category.php @@ -596,7 +596,6 @@ public function createEntities() 'path' => 'path', 'position' => 'position', 'level' => 'level', - 'children_count' => new Expr('0'), ]; /** @var Select $parents */ @@ -621,6 +620,7 @@ public function createEntities() /** @var array $values */ $values = [ 'created_at' => new Expr('now()'), + 'children_count' => new Expr('0'), ]; $connection->update($table, $values, 'created_at IS NULL');