You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case of having something modular like a Joomla application, you only want to run php-activerecord for the whole application reusing the models of different components.
My suggestion would be to alter the autoloading to check each model directory for a specific model in means of occurence in the array. Additionally, a method add_model_directory as well as remove_model_directory should be added. the set and get_model_directory methods could stay stable as the set_model_directory delegates to the add method and the get_model_directory only returns the last set directory. This would ensure backwards compatability.
The text was updated successfully, but these errors were encountered:
In case of having something modular like a Joomla application, you only want to run php-activerecord for the whole application reusing the models of different components.
My suggestion would be to alter the autoloading to check each model directory for a specific model in means of occurence in the array. Additionally, a method add_model_directory as well as remove_model_directory should be added. the set and get_model_directory methods could stay stable as the set_model_directory delegates to the add method and the get_model_directory only returns the last set directory. This would ensure backwards compatability.
The text was updated successfully, but these errors were encountered: