Ejemplo n.º 1
0
 /**
  * Filter the query by a related \gossi\trixionary\model\StructureNode object
  *
  * @param \gossi\trixionary\model\StructureNode|ObjectCollection $structureNode The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @throws \Propel\Runtime\Exception\PropelException
  *
  * @return ChildFunctionPhaseQuery The current query, for fluid interface
  */
 public function filterByStructureNode($structureNode, $comparison = null)
 {
     if ($structureNode instanceof \gossi\trixionary\model\StructureNode) {
         return $this->addUsingAlias(FunctionPhaseTableMap::COL_ID, $structureNode->getId(), $comparison);
     } elseif ($structureNode instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(FunctionPhaseTableMap::COL_ID, $structureNode->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByStructureNode() only accepts arguments of type \\gossi\\trixionary\\model\\StructureNode or Collection');
     }
 }
Ejemplo n.º 2
0
 /**
  * Exclude object from result
  *
  * @param   ChildStructureNode $structureNode Object to remove from the list of results
  *
  * @return $this|ChildStructureNodeQuery The current query, for fluid interface
  */
 public function prune($structureNode = null)
 {
     if ($structureNode) {
         $this->addUsingAlias(StructureNodeTableMap::COL_ID, $structureNode->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Ejemplo n.º 3
0
 /**
  * Declares an association between this object and a ChildStructureNode object.
  *
  * @param  ChildStructureNode $v
  * @return $this|\gossi\trixionary\model\Kstruktur The current object (for fluent API support)
  * @throws PropelException
  */
 public function setStructureNode(ChildStructureNode $v = null)
 {
     if ($v === null) {
         $this->setId(NULL);
     } else {
         $this->setId($v->getId());
     }
     $this->aStructureNode = $v;
     // Add binding for other direction of this 1:1 relationship.
     if ($v !== null) {
         $v->setKstruktur($this);
     }
     return $this;
 }
Ejemplo n.º 4
0
 /**
  * Declares an association between this object and a ChildStructureNode object.
  *
  * @param  ChildStructureNode $v
  * @return $this|\gossi\trixionary\model\StructureNodeParent The current object (for fluent API support)
  * @throws PropelException
  */
 public function setStructureNodeRelatedByParentId(ChildStructureNode $v = null)
 {
     if ($v === null) {
         $this->setParentId(NULL);
     } else {
         $this->setParentId($v->getId());
     }
     $this->aStructureNodeRelatedByParentId = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildStructureNode object, it will not be re-added.
     if ($v !== null) {
         $v->addStructureNodeParentRelatedByParentId($this);
     }
     return $this;
 }