aboutsummaryrefslogtreecommitdiff
path: root/lib/sfIsisImporterRelations.class.php
diff options
context:
space:
mode:
authorSilvio <s1lv10@uol.com.br>2010-09-02 12:18:33 -0300
committerSilvio <s1lv10@uol.com.br>2010-09-02 12:18:33 -0300
commit9cc7a3afe96e525934f710907f5d96f18de40b1f (patch)
tree52b1db8d95406e707b9925f224476cc471758183 /lib/sfIsisImporterRelations.class.php
parent58c0c37b33fc4521065ad06b4222fde3e71468e2 (diff)
downloadsf_isis_importer_plugin-9cc7a3afe96e525934f710907f5d96f18de40b1f.tar.gz
sf_isis_importer_plugin-9cc7a3afe96e525934f710907f5d96f18de40b1f.tar.bz2
Changing the way we deal with the isis object
Diffstat (limited to 'lib/sfIsisImporterRelations.class.php')
-rw-r--r--lib/sfIsisImporterRelations.class.php8
1 files changed, 4 insertions, 4 deletions
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);
}
}
}