Coloquent
Coloquent copied to clipboard
Fixed constructor retrieval when using ES6 proxies
Same issue as #88, although this time is a bit deeper.
I've added two private methods to get the constructor of the current model or the one of another instance, different than the current one. This way it will be easier to get the constructor and also reduce repetitions