Welcome Guest, Not a member yet? Register   Sign In
Extending Datamapper
#4

[eluser]WanWizard[/eluser]
Hmm... This is not that simple.

Did you do a $this->load->library('datamapperextra')? That should trigger the __construct() which loads the required helpers, if you have made the change mentioned above.

But it gets worse. The Datamapper class is used both statically and as parent for your models. If you extend it, and use your extended class for your models, static calls to Datamapper will no longer work.

I'm afraid this needs structural changes, which means next major release.

Could you create a ticket on http://bitbucket.org/wanwizard/datamapper/issues so this isn't forgotten?


Messages In This Thread
Extending Datamapper - by El Forum - 08-03-2011, 10:52 AM
Extending Datamapper - by El Forum - 08-03-2011, 11:11 AM
Extending Datamapper - by El Forum - 08-03-2011, 11:26 AM
Extending Datamapper - by El Forum - 08-03-2011, 12:30 PM
Extending Datamapper - by El Forum - 08-03-2011, 10:43 PM
Extending Datamapper - by El Forum - 08-04-2011, 02:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB