public static function set() { return !empty(self::$set) ? self::$set : (self::$set = new DB_ORM_Mappers_Set()); }
public function __construct(DB_Connection $connection) { $this->db = $connection; $this->db->listeners->append(new DB_Schema_ExecutionListener(), 'schema_query'); $this->dsn = $connection->dsn; $this->information = DB_ORM_Mappers::set()->connect($connection)->information; $this->db_schema = $this->db->adapter->get_schema(); $this->clear(); }