[eluser]timobg[/eluser]
Hi,
I am developing an application for handling logging data and I want to achieve logging in multiple database tables for more faster and better presentation later.
I want to make a DMZ datamapper 1.8.2 model to use multiple tables which are being created dynamically with the time when stored data grows.
So my question is, how could I handle multiple tables with one model. I tried to call the method reinitialize_model(), but without success ???
If anybody has done, please, share ...
Any thoughts are appreciated ...
Code:
$log_obj = new Log_m("new_table_name");
$log_obj->reinitialize_model();
Code:
$log_obj = new Log_m();
$log_obj->table = "new_table_name";
$log_obj->reinitialize_model();
I am not using datamapper cache.
Regards