/**
  * Declares an association between this object and a ChildTemplatenames object.
  *
  * @param  ChildTemplatenames $v
  * @return $this|\RRightsFortemplate The current object (for fluent API support)
  * @throws PropelException
  */
 public function setTemplatenames(ChildTemplatenames $v = null)
 {
     if ($v === null) {
         $this->setTemplateid(NULL);
     } else {
         $this->setTemplateid($v->getId());
     }
     $this->aTemplatenames = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildTemplatenames object, it will not be re-added.
     if ($v !== null) {
         $v->addRRightsFortemplate($this);
     }
     return $this;
 }
 /**
  * Filter the query by a related \Templatenames object
  *
  * @param \Templatenames|ObjectCollection $templatenames 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 ChildContributionsQuery The current query, for fluid interface
  */
 public function filterByTemplatenames($templatenames, $comparison = null)
 {
     if ($templatenames instanceof \Templatenames) {
         return $this->addUsingAlias(ContributionsTableMap::COL__FORTEMPLATE, $templatenames->getId(), $comparison);
     } elseif ($templatenames instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ContributionsTableMap::COL__FORTEMPLATE, $templatenames->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByTemplatenames() only accepts arguments of type \\Templatenames or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildTemplatenames $templatenames Object to remove from the list of results
  *
  * @return $this|ChildTemplatenamesQuery The current query, for fluid interface
  */
 public function prune($templatenames = null)
 {
     if ($templatenames) {
         $this->addUsingAlias(TemplatenamesTableMap::COL_ID, $templatenames->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }