Browse Source

Reverting some changes to the Table object

Florian Krämer 9 years ago
parent
commit
e3295eefea
1 changed files with 0 additions and 16 deletions
  1. 0 16
      src/ORM/Table.php

+ 0 - 16
src/ORM/Table.php

@@ -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();
         }