Megan McVey

  • Registered on: 2012-05-30
  • Last connection: 2013-09-24

Activity

Reported issues: 0

2013-09-05

11:42 AM PHP ActiveRecord Help: RE: RE: Model has no attributes???
I'll try.
Does the table 'orders' exist in the database already?
Does the table 'orders' have an o_key field?
...

2013-07-18

07:00 PM PHP ActiveRecord Help: RE: PHP activerecord exception : Base table or view not found
According to the comments in https://github.com/kla/php-activerecord/issues/274 you need to be using PHP 5.3.9+
I...
06:43 PM PHP ActiveRecord Help: RE: How to show the AVG() result of the query.
What shafiq.rst khan wrote works because of this:
The earlier version, using find('all', array(...)) returns an ar...
06:29 PM PHP ActiveRecord Help: RE: how to handle this exception
Looks like the `produto` field in `vendas` refers to the `id_prod` field of the `produtos` table.
You are trying t...
06:20 PM PHP ActiveRecord Help: RE: Last inserted id
If you just want the id of the thing you just saved...
$thing = new Thing();
$thing->field = 'value';
if ($thi...
06:18 PM PHP ActiveRecord Help: RE: Models Class not found with Namespace
Super late to the party.
I believe namespaced classes are expected to be in a directory for the namespace.
If y...
06:08 PM PHP ActiveRecord General: RE: How does ActiveRecord correlate the singular class name to the table name?
Your ActiveRecord\Model-derived class has a reference to an ActiveRecord\Table.
When the Table gets initialized (o...

2013-04-06

03:14 AM PHP ActiveRecord Help: RE: Calling save() in after_create, results in recursive saves
Haven't checked if this is fixed in the live branch, but the version I have has

$this->invoke_callback('af...

2012-05-30

03:47 PM PHP ActiveRecord Help: RE: How do I generate this nested query?
You could try something like...
<pre class="code"><code class="php">
$resource = Resource::find(array('conditio...
03:36 PM PHP ActiveRecord Help: RE: How to check the status of query execution
Model->save() returns true or false.
You can then use Model->errors to see the reasons why.

Also available in: Atom