-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] remove static initialization of TableMap #361
Comments
Can we live with these static calls by now? |
What about using some sort of singleton-pattern for the TableMap-classes? Are there any reasons to create multiple instances? Another problem with the static calls is that you get different results in the DatabaseMap depending on what classes have been loaded. Would it be possible to let the DatabaseMap know about the tables when loading propel configuration? |
A factory object to create and initialize the corresponding Table map? |
Bike shedding imho. Le 11 mai 2013 à 11:55, William Durand notifications@github.com a écrit :
|
@willdurand yes we can but it would be better to remove it before beta otherwise we are going to keep those lines forever ;) @deadbeef84 I think we can generate a classmap with the builder and give it to the tablemap with propel configuration |
Generating a DatabaseMap for each database used in the schemas could solve that. E.g. |
@fzaninotto This is definitely not bikeshedding. When used incorrectly TableMaps can blow out memory. |
@mringler Can we close this with latest changes done? |
Yes, we handled this. Let's close the issue. |
We need to find a good way to initialize the
TableMap
classes and remove the static callTableMap::buildTableMap()
at the bottom of eachTableMap
classesMaybe we could use :
The text was updated successfully, but these errors were encountered: