cc-3936: Made phpName of foreign key conform to Fk prefix convention.

This commit is contained in:
Rudi Grinberg 2012-08-24 11:10:05 -04:00
parent 857be6b702
commit 4efdf71aea
7 changed files with 49 additions and 49 deletions

View file

@ -1660,7 +1660,7 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
$this->initCcFilessRelatedByDbOwnerId();
} else {
$collCcFilessRelatedByDbOwnerId = CcFilesQuery::create(null, $criteria)
->filterByOwner($this)
->filterByFkOwner($this)
->find($con);
if (null !== $criteria) {
return $collCcFilessRelatedByDbOwnerId;
@ -1691,7 +1691,7 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
$query->distinct();
}
return $query
->filterByOwner($this)
->filterByFkOwner($this)
->count($con);
}
} else {
@ -1714,7 +1714,7 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
}
if (!$this->collCcFilessRelatedByDbOwnerId->contains($l)) { // only add it if the **same** object is not already associated
$this->collCcFilessRelatedByDbOwnerId[]= $l;
$l->setOwner($this);
$l->setFkOwner($this);
}
}