hasOne Version 2 (no workie)


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.