/** * Start a DaoMap transaction * * @param BaseEntityAbstract $entity The entity that we are trying to load map for */ public static function begin(BaseEntityAbstract $entity, $alias = null) { self::$_activeClassRaw = get_class($entity); $activeClass = strtolower(self::$_activeClassRaw); self::$_tempMap[$activeClass] = array(); if (is_null($alias)) { $alias = $activeClass; } self::$_tempMap[$activeClass]['_']['alias'] = $alias; self::$_tempMap[$activeClass]['_']['sort'] = null; }