/**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aJaCategorias) {
         $this->aJaCategorias->removeJaPaginaCategorias($this);
     }
     if (null !== $this->aJaPaginas) {
         $this->aJaPaginas->removeJaPaginaCategorias($this);
     }
     $this->id = null;
     $this->id_pagina = null;
     $this->id_categoria = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Пример #2
0
 /**
  * Exclude object from result
  *
  * @param   ChildJaPaginas $jaPaginas Object to remove from the list of results
  *
  * @return $this|ChildJaPaginasQuery The current query, for fluid interface
  */
 public function prune($jaPaginas = null)
 {
     if ($jaPaginas) {
         $this->addUsingAlias(JaPaginasTableMap::COL_ID, $jaPaginas->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * Filter the query by a related \JaPaginas object
  *
  * @param \JaPaginas|ObjectCollection $jaPaginas 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 ChildJaPaginaCategoriasQuery The current query, for fluid interface
  */
 public function filterByJaPaginas($jaPaginas, $comparison = null)
 {
     if ($jaPaginas instanceof \JaPaginas) {
         return $this->addUsingAlias(JaPaginaCategoriasTableMap::COL_ID_PAGINA, $jaPaginas->getId(), $comparison);
     } elseif ($jaPaginas instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(JaPaginaCategoriasTableMap::COL_ID_PAGINA, $jaPaginas->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByJaPaginas() only accepts arguments of type \\JaPaginas or Collection');
     }
 }