Exemplo n.º 1
0
 /**
  * Declares an association between this object and a ChildImport object.
  *
  * @param                  ChildImport $v
  * @return                 \Thelia\Model\ImportI18n The current object (for fluent API support)
  * @throws PropelException
  */
 public function setImport(ChildImport $v = null)
 {
     if ($v === null) {
         $this->setId(NULL);
     } else {
         $this->setId($v->getId());
     }
     $this->aImport = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildImport object, it will not be re-added.
     if ($v !== null) {
         $v->addImportI18n($this);
     }
     return $this;
 }
Exemplo n.º 2
0
 /**
  * Filter the query by a related \Thelia\Model\Import object
  *
  * @param \Thelia\Model\Import|ObjectCollection $import The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildImportI18nQuery The current query, for fluid interface
  */
 public function filterByImport($import, $comparison = null)
 {
     if ($import instanceof \Thelia\Model\Import) {
         return $this->addUsingAlias(ImportI18nTableMap::ID, $import->getId(), $comparison);
     } elseif ($import instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ImportI18nTableMap::ID, $import->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByImport() only accepts arguments of type \\Thelia\\Model\\Import or Collection');
     }
 }
Exemplo n.º 3
0
 /**
  * Exclude object from result
  *
  * @param   ChildImport $import Object to remove from the list of results
  *
  * @return ChildImportQuery The current query, for fluid interface
  */
 public function prune($import = null)
 {
     if ($import) {
         $this->addUsingAlias(ImportTableMap::ID, $import->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }