/app/Model/PerguntaResposta.php

https://github.com/decapattack/fishbox · PHP · 15 lines · 12 code · 2 blank · 1 comment · 0 complexity · cb89df58a2ed6f3fb06af3b5e416f558 MD5 · raw file

  1. <?php
  2. class PerguntaResposta extends AppModel {
  3. //public $hasMany = array('Resposta');
  4. public $hasMany = array(
  5. 'Resposta' => array(
  6. 'className' => 'Resposta',
  7. 'foreignKey' => 'pergunta_respostas_id',
  8. 'conditions' =>'',
  9. 'order' => ''
  10. )
  11. );
  12. }
  13. ?>