public
Created

  • Download Gist
gistfile1.aw
PHP
1 2 3 4 5 6 7 8 9
<?php
class Category extends AppModel {
public $hasOne = array(
'MainPost' => array(
'className' => 'Post',
'foreignKey' => 'mainpost_id'
)
);
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.