Welcome Guest, Not a member yet? Register   Sign In
Active Record Subqueries
#5

[eluser]NTICompass[/eluser]
[quote author="CodeTroll" date="1346658406"]Works like a charm.. Had to change the is_callable check in the constructor from

Code:
$this->func = is_callable(array($this->db, '_compile_select')) ? '_compile_select' : is_callable(array($this->db, 'get_compiled_select')) ? 'get_compiled_select' : null;
to

Code:
$this->func = is_callable(array($this->db, '_compile_select')) ? '_compile_select' : (is_callable(array($this->db, 'get_compiled_select')) ? 'get_compiled_select' : null);

otherwise it kept returning get_compiled_select even when _compile_select was the one available.[/quote]

derp X_X

I wrote that line late one night, didn't realize I'd missed that set of parenthesis. Thanks for telling me, I'll fix that in GitHub later :-)


Messages In This Thread
Active Record Subqueries - by El Forum - 12-28-2010, 10:58 PM
Active Record Subqueries - by El Forum - 12-30-2010, 02:20 PM
Active Record Subqueries - by El Forum - 12-30-2010, 02:29 PM
Active Record Subqueries - by El Forum - 09-03-2012, 12:46 AM
Active Record Subqueries - by El Forum - 09-03-2012, 01:12 AM
Active Record Subqueries - by El Forum - 09-03-2012, 01:25 AM
Active Record Subqueries - by El Forum - 09-03-2012, 03:06 AM
Active Record Subqueries - by El Forum - 09-03-2012, 09:43 AM
Active Record Subqueries - by El Forum - 09-03-2012, 09:59 AM
Active Record Subqueries - by El Forum - 09-03-2012, 11:37 AM
Active Record Subqueries - by El Forum - 09-03-2012, 11:41 AM
Active Record Subqueries - by El Forum - 09-03-2012, 03:40 PM
Active Record Subqueries - by El Forum - 12-10-2012, 10:20 AM
Active Record Subqueries - by El Forum - 12-10-2012, 10:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB