Jamie Rumbelow's Flare O/R Mapper for CI - anybody playing around with it? |
[eluser]Jamie Rumbelow[/eluser]
I was wondering when a Flare topic would pop up here ![]() Having said that, it's really helpful having people reporting bugs to me, so please keep going - I really appreciate it and it's really helpful for the system's development. [quote author="peterphp" date="1261061152"] Solution for 3): Code: $options = array( with: model: customer_model (that's what "Customer::" refers to). "conditions" within the options-array creates a where statement in the resulting sql. [/quote] I think there's a bug - I'll investigate with the select issue you were having and see what I can find. Quote:Workaround for 2): There's an inherent issue in PHP and static stuff that means overloading static properties doesn't work correctly. It's pissing annoying. I'll have to go to the drawing board and figure out what the best solution to this problem is, until then, just use the "from" options parameter. Quote:Again, IMHO Jamie delivered a *brilliant* piece of code with Flare, congratulations to that! Thanks very much! ![]() [quote author="sophistry" date="1261081758"]i hadn't noticed that bit of code until now. thanks for the link. two things i did notice about the code: pluralize and singularize are not optimized - in fact, it's the opposite! the code could be easily refigured to test for the most common matches first and then return. instead, it searches the uncommon words first and only at the very last foreach loop does it get to the basic english pluralization of "add an s or es". also, using CI's last_row() function is a very bad idea (this bug has been confirmed, yet not fixed in CI since April 15, 2009): http://codeigniter.com/bug_tracker/bug/7389/ otherwise, this looks good for PHP5 users! thanks.[/quote] Thanks for the comments. As far as the inflectors go, they work. And I'm happy with that ![]() I'm sure EllisLab will fix last_row(), and then it won't be a problem, will it? ![]() Cheers. Jamie |
Messages In This Thread |
Jamie Rumbelow's Flare O/R Mapper for CI - anybody playing around with it? - by El Forum - 12-16-2009, 06:26 PM
Jamie Rumbelow's Flare O/R Mapper for CI - anybody playing around with it? - by El Forum - 12-17-2009, 02:45 AM
Jamie Rumbelow's Flare O/R Mapper for CI - anybody playing around with it? - by El Forum - 12-17-2009, 08:29 AM
Jamie Rumbelow's Flare O/R Mapper for CI - anybody playing around with it? - by El Forum - 12-17-2009, 11:44 AM
Jamie Rumbelow's Flare O/R Mapper for CI - anybody playing around with it? - by El Forum - 12-17-2009, 11:56 AM
Jamie Rumbelow's Flare O/R Mapper for CI - anybody playing around with it? - by El Forum - 01-09-2010, 07:57 AM
Jamie Rumbelow's Flare O/R Mapper for CI - anybody playing around with it? - by El Forum - 01-09-2010, 08:33 AM
Jamie Rumbelow's Flare O/R Mapper for CI - anybody playing around with it? - by El Forum - 01-09-2010, 11:29 AM
|