DataMapper ORM v1.8.0 |
[eluser]Jean Brodeur[/eluser]
@WanWizard Thank for the answer, i found things much more clear now. Also, thank for this ORM, great work. Jean
[eluser]Syahzul[/eluser]
hi all, i have problem with Datamapper 1.8.0 when using Modular Extensions - HMVC. i tried searching solution from this forum but found nothing (or maybe not enough searching). any help would be very appreciated. the error: Code: Fatal error: Call to undefined method Welcome::get() in D:\public_html\workable\application\modules\welcome\controllers\welcome.php on line 25 controller: Code: class Welcome extends MX_Controller { model: Code: class Welcome extends DataMapper { thank you in advanced.
[eluser]WanWizard[/eluser]
This is PHP. You can not have two classes with the same class name (in the same namespace). So when you do 'new Welcome()', it creates a new instance of your controller, and not of the model.
[eluser]Syahzul[/eluser]
yeah, it seems that's the problem. sorry for asking such newbie question. thank you for your reply.
[eluser]Burton Kent[/eluser]
I'm trying to find the SQL field type of a given field. I've got code that will search fields using LIKE, however, that's not appropriate for numeric fields. Does Datamapper store the field type somewhere so I can appropriately change the search? Or is there an easy/elegant way to get a list of field types? I'd like to avoid adding any queries I don't have to.
[eluser]WanWizard[/eluser]
Currently, field data isn't stored in the object, only the name of the column. If you want, you can add a feature request at http://bitbucket.org/wanwizard/datamapper/issues, so I can have a look at it when I have the time...
[eluser]cladff[/eluser]
Hi, i'm trying to create a function which can move up or down nodes by selecting prev or next sibilings with nested sets in Datamapper. Code: function move_item_menu() but unfortunaly it doesn't work. i use multi tree options can somebody help me please? Thanks in advance
[eluser]WanWizard[/eluser]
The nested_sets extension is still in an expirimental stage, and shouldn't be used in applications unless you're prepared to hunt for bugs (some have already been reported). I haven't had the time to do that myself, more pressing issues at the moment...
[eluser]cladff[/eluser]
Hi, from my previous post i solved my issue! i just saw that it was the make_previous_sibling_of which doesn't work but make_next does what i need so i turned my code into Code: function move_item_menu() for the up direction i move the previous sibling to next to the current its the same as moving current as previous ... and it workrs
[eluser]cladff[/eluser]
next issue i want to change parent of a node but it doesnt work... and same if i try last_child_of Code: function move_item_parent() can somebody help me or direct me in a plugin which works in nested set? datamapper is so easy to use i don't want to turn into doctrine thanks in advance |
Welcome Guest, Not a member yet? Register Sign In |