I've got some errors, e.

Recommend this page to a friend!

      ORM mapping class(like Hibernate), maps database table rows to objects  >  All threads  >  I've got some errors, e.  >  (Un) Subscribe thread alerts  
Subject:I've got some errors, e.
Summary:Package rating comment
Messages:3
Author:Marian
Date:2012-08-03 23:32:05
Update:2013-02-14 13:21:47
 

Marian rated this package as follows:

Utility: Bad
Consistency: Sufficient
Examples: Insufficient

  1. I've got some errors, e.   Reply   Report abuse  
Picture of Marian Marian - 2012-08-03 23:32:05
I've got some errors, e.g:
PHP Fatal error: Call to undefined method stdClass::Save()
PHP Notice: Trying to get property of non-object in /var/www/orm2/example.php on line 12

  2. Re: I've got some errors, e.   Reply   Report abuse  
Picture of sid sid - 2013-02-14 13:21:47 - In reply to message 1 from Marian
You have to return the id from self::GetById($id, __CLASS__); on ExampleObject.php

  3. Re: I've got some errors, e.   Reply   Report abuse  
Picture of Indrek Altpere Indrek Altpere - 2016-06-18 15:18:37 - In reply to message 1 from Marian
Indeed, a return was missing in both example object ById methods, files have been updated.

 

For more information send a message to info at phpclasses dot org.