Alexander Makarov
Alexander Makarov
Yes, no docs yet.
@HaruAtari any way it can be fixed without breaking things?
Without taking backwards compatibility in account, I'd say it's a wrong behavior that given explicit DB connection it uses schema from another connection.
Moved issue to standalone AR implementation. @HaruAtari if you know a good backwards compatible way to change it in Yii 2, let us know.
That won't be backwards compatible so can't be done in Yii 2. This way you will force updating all the AR classes that implement populateRecord or else you'll get an...
Yes. The issue was initially opened in Yii2 then moved here.
Which Exception? It cannot be HttpException because these methods may be used in console. If it will be general purpose exception then you'll have to catch it and throw Http...
And if you're in console app?
implements HttpException? Makes no sense in console app.
Still doesn't make sense to have anything about HTTP in console.