Added support for cascade
Fixed issue with saving models without relations