Proyectos de Subversion LeadersLinked - Services

Rev

Rev 558 | Rev 620 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 558 Rev 618
Línea 108... Línea 108...
108
        $select->where->equalTo('topic_id', $topic_id);
108
        $select->where->equalTo('topic_id', $topic_id);
109
        $select->where->equalTo('capsule_id', $capsule_id);
109
        $select->where->equalTo('capsule_id', $capsule_id);
Línea 110... Línea 110...
110
        
110
        
111
        return $this->executeFetchOneObject($select, $prototype);
111
        return $this->executeFetchOneObject($select, $prototype);
-
 
112
    }
-
 
113
        
-
 
114
    /**
-
 
115
     * Deletes all topic-capsule relationships for a given topic ID.
-
 
116
     * 
-
 
117
     * @param int $topic_id
-
 
118
     * @return boolean
-
 
119
     */
-
 
120
    public function deleteByTopicId($topic_id)
-
 
121
    {
-
 
122
        $delete = $this->sql->delete(self::_TABLE);
-
 
123
        $delete->where->equalTo('topic_id', $topic_id);
-
 
124
        return $this->executeDelete($delete);
Línea 112... Línea 125...
112
    }
125
    }
113
    
126
    
114
    /**
127
    /**
115
     * Fetches a single topic-capsule relationship by capsule ID.
128
     * Fetches a single topic-capsule relationship by capsule ID.