Skip to content

Instantly share code, notes, and snippets.

@beeblebrox3
Created August 6, 2013 14:24
Show Gist options
  • Save beeblebrox3/6164942 to your computer and use it in GitHub Desktop.
Save beeblebrox3/6164942 to your computer and use it in GitHub Desktop.
<?php
// file: app/plugins/pesquisa/models/pesquisagrupoquestao.php
class Pesquisagrupoquestao extends AppModel {
var $name = 'Pesquisagrupoquestao';
var $useTable = 'pesquisagruposquestoes';
var $hasMany = array(
'Pesquisaquestao' => array(
'className' => 'Pesquisaquestao',
'foreignKey' => 'pesquisagrupoquestao_id',
)
);
////////////////////////////////////////////////////////////////
<?php
// file: app/plugins/pesquisa/models/pesquisaquestao.php
class Pesquisaquestao extends AppModel {
var $name = 'Pesquisaquestao';
var $useTable = 'pesquisaquestoes';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment