Jonathan Stanton

  • Registered on: 2011-04-08
  • Last connection: 2011-08-26

Activity

Reported issues: 0

2011-08-26

11:58 AM PHP ActiveRecord General: idea: has_ function
It would be great if there was a has_ function for example
$school->has_teacher_assistant
would return bool, the ta...

2011-05-14

09:05 PM PHP ActiveRecord General: RE: SQL Injection
Was I using the correct way of passing the logger into set_logger? If so maybe you can copy my example or an example...

2011-05-13

12:39 PM PHP ActiveRecord General: RE: SQL Injection
update: ok so I figured out how to pass a class into the initialize config. Is this the best way to do so?
<pre cl...
12:07 PM PHP ActiveRecord General: RE: SQL Injection
Ah good very informative. Thank you Yoan. I've searched around the wiki and the forum and I haven't found sufficient ...

2011-05-12

02:59 PM PHP ActiveRecord General: SQL Injection
I know that using find_by_sql will not protect against SQLI but if I was to search with something basic like:
model:...

2011-04-22

01:11 PM PHP ActiveRecord Help: validates_uniqueness_of NULL question
I want there to always be unique values on my field except for NULL values, it should be ok that I have many NULL val...

2011-04-11

08:40 PM PHP ActiveRecord General: RE: My First Association :(
That works for you huh? Hmmm I am trying to figure out where I went wrong. quite verbose way of doing it but I guess ...
12:55 PM PHP ActiveRecord General: RE: My First Association :(
everything is lowercase and in singular form, but when I try so user has many userstoprojets (plural). it says it doe...
12:45 PM PHP ActiveRecord General: RE: My First Association :(
Why not also the line above? Wouldn't that make conventional sense as well?
12:38 PM PHP ActiveRecord General: RE: My First Association :(
I am assuming your talking about pluralizing array('usertoproject') but you cannot. or you'll get this error
it woul...

Also available in: Atom