/**
  * Filter the query by a related Procedimiento object
  *
  * @param   Procedimiento|PropelObjectCollection $procedimiento The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return   AgendaQuery The current query, for fluid interface
  * @throws   PropelException - if the provided filter is invalid.
  */
 public function filterByProcedimiento($procedimiento, $comparison = null)
 {
     if ($procedimiento instanceof Procedimiento) {
         return $this->addUsingAlias(AgendaPeer::TIPO_PROC_ID, $procedimiento->getId(), $comparison);
     } elseif ($procedimiento instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(AgendaPeer::TIPO_PROC_ID, $procedimiento->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByProcedimiento() only accepts arguments of type Procedimiento or PropelCollection');
     }
 }