Max Schwanekamp

  • Registered on: 2011-03-24
  • Last connection: 2012-03-21

Activity

Reported issues: 0

2012-03-19

04:51 PM PHP ActiveRecord Help: RE: encode_json
I don't have the answer, but I'm thinking the problem is with php's ...
04:09 PM PHP ActiveRecord Help: RE: Simple (I think) association problem. Help!
You need to set the foreign_key property too. Something like this:...

2012-03-16

03:32 AM PHP ActiveRecord Help: RE: Show last SQL query
Use a logger.
Print your PHP errors to a log, and if you're in development you can log the SQL being generated too...
03:00 AM PHP ActiveRecord Help: RE: RecordNotFound when deleting model. Delete before find? Or find after delete?
Collin, just to rule out the obvious, you should test if the record exists first.
That is, you should be doing som...

2012-02-20

04:42 PM PHP ActiveRecord Help: RE: newbie to activerecord
Mal, if you're new to ORMs in PHP, you might look instead at using one of the more popular frameworks with an ORM com...
04:12 AM PHP ActiveRecord Help: RE: Problem with n:m Associations
How is your Bonussystems_has_article model configured? For has a "has_many through association":/projects/main/wiki/A...
03:38 AM PHP ActiveRecord Help: RE: Problem with n:m Associations
Assuming this table data:
Article model (table articles)
|id|name|price|
|1|Article A|5.00|
Bonussystems_has_...
03:07 AM PHP ActiveRecord Help: RE: Problem with n:m Associations
Seems like you have two questions. The first one is about making the association, the second seems to be about format...

2011-10-25

09:20 PM PHP ActiveRecord General: RE: PHP-AR show my MySQL login and password in errors!
ActiveRecord\Config::set_connections() throws a ConfigException, not a DatabaseException.
All AR exception classes d...

2011-10-05

05:29 PM PHP ActiveRecord General: RE: RE: PHP-AR show my MySQL login and password in errors!
Dude! Catch the exception and the problem is solved. The fact that all those others fail to do so is not the devs' fa...

Also available in: Atom