Michael D

  • Registered on: 2012-06-04
  • Last connection: 2012-07-04

Activity

Reported issues: 0

2012-07-04

11:56 AM PHP ActiveRecord General: Three tables relationship
I am working on a permissions system. I have three tables. groups (id|name), permissions(id|permission) and permissio...

2012-06-10

07:17 AM PHP ActiveRecord Help: How to I write this sql?
I want to get results where requester_id = $this->user_id or receiver_id = $this->user_id and is_pending = 1;
I tr...

2012-06-04

11:37 AM PHP ActiveRecord Help: RE: Fatal error if record not found
I still get error if I use find_by_id.
User::find_by_id($id);
04:17 AM PHP ActiveRecord Help: Problem with ssociations
I want to get a users messages. What am I doing wrong? I get a huge fatal error.
<pre class="code">
Fatal error: U...
03:36 AM PHP ActiveRecord Help: Fatal error if record not found
If I am submitting a id that does not exist in the database, php-acticerecord gets a fatal error.
example
$user...

Also available in: Atom