#5934: Fatal error: Cannot access empty property in
/.../cake/libs/model/model.php
on line 880
--------------------------+-------------------------------------------------
Reporter: billfan | Type: Bug
Status: new | Priority: Critical
Milestone: 1.2.x.x | Component: Model
Version: 1.2 Final | Severity: Critical
Keywords: | Php_version: PHP 5
Cake_version: |
--------------------------+-------------------------------------------------
It is a simple test:
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.
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/5934>
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
-~----------~----~----~----~------~----~------~--~---