#5948: Fatal error: Cannot access empty property in
/home/www/getcarpool.freehostia.com/cp081218/cake/libs/model/model.php on
line 920
--------------------------+-------------------------------------------------
    Reporter:  billfan    |          Type:  Bug   
      Status:  new        |      Priority:  High  
   Milestone:  1.2.x.x    |     Component:  Model 
     Version:  1.2 Final  |      Severity:  Normal
    Keywords:             |   Php_version:  n/a   
Cake_version:             |  
--------------------------+-------------------------------------------------
 Ticket #5934 continued after I replaced cake fold with new one from
 1.2.0.7962

 The code is simple, as followed:

 in Schedule controller: $rows = $this ->Schedule ->find('all');
 var_dump($rows);

 in Schedule Model:

 var $hasMany = 'Location';

 It worked well in local, but when uploaded it online(to freehostia.com),
 it said Fatal error: Cannot access empty property... refer to my attached
 image from Ticket #5934.

 but when remove var $hasMany = 'Location'; from the Model, it became
 alright, data can be retrieved and displayed very well.

 Key point, why var $hasMany = 'Location' make the Model dead? how to
 retrieve these associate data out?

 Earlier bug resolve will be appreciated.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5948>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

  • [CakePHP : The Rapid Dev... CakePHP : The Rapid Development Framework for PHP

Reply via email to