teaman
03/01/2024, 10:17 PMAdam Cameron
teaman
03/01/2024, 10:17 PMAdam Cameron
teaman
03/01/2024, 10:18 PMteaman
03/01/2024, 10:18 PMAdam Cameron
Adam Cameron
teaman
03/01/2024, 10:21 PMAdam Cameron
teaman
03/01/2024, 10:24 PMteaman
03/01/2024, 10:25 PMAdam Cameron
Adam Cameron
teaman
03/01/2024, 10:27 PMAdam Cameron
teaman
03/01/2024, 10:27 PMAdam Cameron
teaman
03/01/2024, 10:30 PMteaman
03/01/2024, 10:30 PMteaman
03/01/2024, 10:31 PMAdam Cameron
Adam Cameron
Actually it was more like 30 yrs ago.Time flies eh? Ha
teaman
03/01/2024, 10:32 PMteaman
03/01/2024, 10:32 PMAdam Cameron
Adam Cameron
teaman
03/01/2024, 10:35 PMteaman
03/01/2024, 10:35 PMAdam Cameron
<cfquery> or <cfldap> etc.Adam Cameron
neokoenig
03/01/2024, 10:41 PMI'm just trying to get the dataSource() override to work but for me it's not, yet I have a new workmate who got it working for a non-login page. I put that function call for the new DSN in the config of the "user" model but first line I reference it, it will dump the DSN as the old one, not the new.
the config() function is cached. so you'd need to restart the app for anything in config() to get changed. i.e I don't think you can make the datasource() for an individual model dynamic per se.teaman
03/01/2024, 10:42 PMteaman
03/01/2024, 10:42 PMneokoenig
03/01/2024, 10:43 PMteaman
03/01/2024, 10:43 PMteaman
03/01/2024, 10:43 PMneokoenig
03/01/2024, 10:43 PMteaman
03/01/2024, 10:43 PMteaman
03/01/2024, 10:44 PMneokoenig
03/01/2024, 10:48 PMdatasource(someotherFunctionWhichReturnsDatasource()) - that way pain probably lies 🙂teaman
03/01/2024, 10:55 PMteaman
03/01/2024, 11:23 PMneokoenig
03/02/2024, 9:15 AMteaman
03/04/2024, 4:40 PM