From 9cc7a3afe96e525934f710907f5d96f18de40b1f Mon Sep 17 00:00:00 2001 From: Silvio Date: Thu, 2 Sep 2010 12:18:33 -0300 Subject: Changing the way we deal with the isis object --- lib/sfIsisImporterRelations.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/sfIsisImporterRelations.class.php') diff --git a/lib/sfIsisImporterRelations.class.php b/lib/sfIsisImporterRelations.class.php index 6912305..956d287 100644 --- a/lib/sfIsisImporterRelations.class.php +++ b/lib/sfIsisImporterRelations.class.php @@ -14,7 +14,7 @@ class sfIsisImporterRelations extends sfIsisImporterEntities { */ public function addOneToOne(&$model, array $field, $relation) { - foreach (new IsisRowIterator($this, $field) as $row) + foreach (new IsisRowIterator($this->isis, $field) as $row) { $data = new $relation(); @@ -51,7 +51,7 @@ class sfIsisImporterRelations extends sfIsisImporterEntities { */ public function addOneToManyMain(&$model, array $field, $entity, $key = 'name') { - foreach (new IsisMainItemIterator($this, $field) as $row => $value) + foreach (new IsisMainItemIterator($this->isis, $field) as $row => $value) { $this->log("Entity: $entity; Value: $value", 'debug'); $data = $this->addOneToMany($model, $entity); @@ -136,9 +136,9 @@ class sfIsisImporterRelations extends sfIsisImporterEntities { */ public function addManyToManyMain(&$model, array $field, $relation, $key = 'name') { - foreach (new IsisMainItemIterator($this, $field) as $value) + foreach (new IsisMainItemIterator($this->isis, $field) as $value) { - $this->addManyToManyEntities($model, $this->explodeBrackets($value), $relation, $key); + $this->addManyToManyEntities($model, $this->isis->explodeBrackets($value), $relation, $key); } } } -- cgit v1.2.3