/** * Returns the connection currently associated with the class. This can * also be used to "borrow" the connection to do database work unrelated * to any of the specific Active Records. * * @return Mad_Model_ConnectionAdapter_Abstract */ public static function connection() { if (self::$_activeConnection) { return self::$_activeConnection; } else { return self::$_activeConnection = self::retrieveConnection(); } }