public static function oneOrFail($id)
	{
		$row = self::one($id);

		// Make sure we have a valid row
		if ($row === false)
		{
			throw new RuntimeException("Failed to retrieve a model with a primary key of {$id}", 404);
		}

		return $row;
	}
public static function oneOrFail($id)
	{
		$row = self::one($id);

		// Make sure we have a valid row
		if ($row === false)
		{
			throw new RuntimeException("Failed to retrieve a model with a primary key of {$id}", 404);
		}

		return $row;
	}
public static function oneOrFail ( $ id ) { $ row = self :: one ( $ id ) ; // Make sure we have a valid row if ( $ row === false ) { throw new RuntimeException ( "Failed to retrieve a model with a primary key of {$id}" , 404 ) ; } return $ row ; }
Retrieves one row by primary key, throwing a new exception if not found

@param   mixed  $id  The primary key field value to use to retrieve one row
@return  \Hubzero\Database\Relational|static
@throws  Hubzero\Error\Exception\RuntimeException
@since   2.0.0
Retrieves one row by primary key throwing a new exception if not found