[DC-801] Multiple template implementation (setImpl) Created: 28/Jul/10 Updated: 28/Apr/12
|Reporter:||B. Ariston Darmayuda||Assignee:||Jonathan H. Wage|
I feel curios when looking setImpl code on Doctrine. It set like this:
I've made a template:
Now I create 2 class that implement PersonTemplate
Then I set implementation on Doctrine_Manager:
Now isn't it only Teacher record recognized as implementation of PersonTemplate ( when we see from this code: $this->_impl[$template] = $class; )
So how we can implement a template into seperated different doctrine record?
|Comment by Richard C. Hidalgo [ 28/Apr/12 ]|
As the doc says "Tip The implementations for the templates can be set at manager, connection and even at the table level." it is supposed one can do:
but for me it throws an exception:
"Couldn't find concrete implementation for template PersonTemplate"