/** * Also removes counterpart row in Streams_Participating table * @method beforeSave * @param {array} $pk * The primary key fields * @return {boolean} */ function beforeRemove($pk) { $p = new Streams_Participating(); $p->userId = $this->userId; $p->publisherId = $this->publisherId; $p->streamName = $this->streamName; $p->remove(); return true; }