Posted By

squarepegsys on 10/18/09


Tagged


Versions (?)

hasOne Version 2 (no workie)


 / Published in: PHP
 

Causes : Parse error: syntax error, unexpected TVARIABLE in /Library/WebServer/Documents/leaderboard/app/models/call.php on the "baseregion" record.

  1. class Call extends AppModel {
  2. var $name = 'Call';
  3.  
  4.  
  5.  
  6. var $region_info= array("className"=>"Region",
  7. "foreignKey"=>"id",
  8. "column"=>"id",
  9. );
  10. var $eqmt_info= array("className"=>"Equipment",
  11. "foreignKey"=>"id",
  12. "column"=>"id",
  13. );
  14. var $hasOne=array(
  15. "base_region"=> $region_info,
  16.  
  17. "region_1"=> $region_info)
  18.  
  19. }

Report this snippet  

You need to login to post a comment.