|
|
@@ -2401,9 +2401,8 @@ class Table implements RepositoryInterface, EventListenerInterface, EventDispatc
|
|
|
{
|
|
|
if ($data === null) {
|
|
|
$class = $this->getEntityClass();
|
|
|
- $entity = new $class([], ['source' => $this->getRegistryAlias()]);
|
|
|
|
|
|
- return $entity;
|
|
|
+ return new $class([], ['source' => $this->getRegistryAlias()]);
|
|
|
}
|
|
|
if (!isset($options['associated'])) {
|
|
|
$options['associated'] = $this->_associations->keys();
|