|
|
@@ -2117,10 +2117,6 @@ class Table implements RepositoryInterface, EventListenerInterface, EventDispatc
|
|
|
*/
|
|
|
public function newEntity($data = null, array $options = [])
|
|
|
{
|
|
|
- if ($options instanceof SaveOptionsBuilder) {
|
|
|
- $options = $options->toArray();
|
|
|
- }
|
|
|
-
|
|
|
if ($data === null) {
|
|
|
$class = $this->entityClass();
|
|
|
$entity = new $class([], ['source' => $this->registryAlias()]);
|
|
|
@@ -2165,10 +2161,6 @@ class Table implements RepositoryInterface, EventListenerInterface, EventDispatc
|
|
|
*/
|
|
|
public function newEntities(array $data, array $options = [])
|
|
|
{
|
|
|
- if ($options instanceof SaveOptionsBuilder) {
|
|
|
- $options = $options->toArray();
|
|
|
- }
|
|
|
-
|
|
|
if (!isset($options['associated'])) {
|
|
|
$options['associated'] = $this->_associations->keys();
|
|
|
}
|
|
|
@@ -2210,10 +2202,6 @@ class Table implements RepositoryInterface, EventListenerInterface, EventDispatc
|
|
|
*/
|
|
|
public function patchEntity(EntityInterface $entity, array $data, array $options = [])
|
|
|
{
|
|
|
- if ($options instanceof SaveOptionsBuilder) {
|
|
|
- $options = $options->toArray();
|
|
|
- }
|
|
|
-
|
|
|
if (!isset($options['associated'])) {
|
|
|
$options['associated'] = $this->_associations->keys();
|
|
|
}
|
|
|
@@ -2249,10 +2237,6 @@ class Table implements RepositoryInterface, EventListenerInterface, EventDispatc
|
|
|
*/
|
|
|
public function patchEntities($entities, array $data, array $options = [])
|
|
|
{
|
|
|
- if ($options instanceof SaveOptionsBuilder) {
|
|
|
- $options = $options->toArray();
|
|
|
- }
|
|
|
-
|
|
|
if (!isset($options['associated'])) {
|
|
|
$options['associated'] = $this->_associations->keys();
|
|
|
}
|