Closed sergeyklay closed 11 years ago
It is public so I suppose the user could specify their own factory name to class mapping. E.g.:
Mongo_Document::$models['foo'] = 'Model_My_Foo';
@colinmollenhour thank you! Hmmm, in my opinion it is dubious (or at least excessive) benefit, as compared with existing ways
Yes, using a public static variable is indeed a bit dubious.. A static setClassNames method or similar would have been less dubious.. But, I think it can be a very useful feature if you want to use the library outside of Kohana 3 or if Kohana ever changes their class name scheme again.
good
Hi!
I'm not sure, maybe I do not understand something or something has overlooked ... Can somebody explain to me what the role
self::$models
here:I'm not found any place where this may be reading. It is evident that it is only written. Excuse me if I say nonsense, I'm just a little confused here...