appscot / sails-orientdb

OrientDB adapter for Waterline / Sails.js ORM
MIT License
25 stars 23 forks source link

Unable to run sails lift (with migrate: 'drop') when dependency subclassed models are created. #120

Closed rh0dium closed 9 years ago

rh0dium commented 9 years ago

Hi there,

If you subclass models you cannot run sails lift. You will get the following error.

error: A hook (`orm`) failed to load!
error: Error (E_UNKNOWN) :: Encountered an unexpected error
OrientDB.RequestError: Class 'pmobject' cannot be dropped because it has sub classes. Remove the dependencies before trying to drop it again
    at Operation.parseError (/Users/sklass/Development/gdp_server/node_modules/sails-orientdb/node_modules/oriento/lib/transport/binary/protocol28/operation.js:832:13)
    at Operation.consume (/Users/sklass/Development/gdp_server/node_modules/sails-orientdb/node_modules/oriento/lib/transport/binary/protocol28/operation.js:422:35)
dmarcelino commented 9 years ago

Hi @rh0dium, this doesn't look like a sails-orientdb issue. Have you tried with other adapters such as sails-memory or sails-disk?

dmarcelino commented 9 years ago

Closing this as unresponsive, please re-open after providing more information.