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