marvelade
marvelade
> > No - MongoDB does not support transactions. Neither does MyISAM if I'm not mistaken ? On Wed, Dec 5, 2012 at 9:28 PM, Vance Lucas [email protected]: > I...
you mean like in cakePHP? On Sat, Nov 17, 2012 at 11:10 PM, Vance Lucas [email protected]: > It would be nice to have a setting for turning on query >...
I did some work on this very issue in one of the projects I'm currently co-authoring for a PHP MasterClass course I'm taking. Please check out the this particular file...
Refactoring the PDO driver for every database type is an option, but makes your code less portable/reusable... Wouldnt it be easier and more flexibele to extend the \PDO class ?...
I think it would be relatively little work to create a SpotPDO class that extends \PDO and overrides the methods that handle the intake of user data, checking it (and...
@TheSavior : can you post some example code that will reproduce the error with an "expected result:" / "actual result:" ? @vlucas : maybe things can be made more foolproof...
I'm leaving on holiday next week and have tons of work to do before that so it's not very likely that I would find time to look in to it......
You could even do that in one query, no? $sql = "SELECT post_id,body FROM comments AS c JOIN posts AS p ON p.id=c.post_id WHERE p.id IN (" . implode(',', $array_with_post_ids_from_search_result)...
Isn't lazy loading why you'd put the query inside a (fictional, of course) $post -> getComments() method instead of calling $post -> comments? For them to be inside a property...
Never really thought of it that way but that sounds like a solid plan. (also, I never really got the use in having an Iterator SPL class until now :)...