Example #1
0
	/**
	 * Removes any associations between the specified record with the current
	 * Record object.
	 *
	 * @param \Bedrock\Model\Record $record the record to remove associations with
	 */
	public function dissociate($record) {
		try {
			\Bedrock\Model\Query::dissociate($this, $record);
		}
		catch(\Exception $ex) {
			\Bedrock\Common\Logger::exception($ex);
			throw new \Bedrock\Model\Record\Exception('The record could not be dissociated.');
		}
	}