by Benjamin St.Germain.
Are you using MS SQLServer? Sounds like the restore issue we have seen when using the MS native driver for PHP. When we switched to the FreeTDS driver, we stopped having this issue when restoring classes, and a few other bugs.