SHARE
TWEET

Untitled

a guest Aug 21st, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. > "select name from permissions"
  2.      
  3. $this->Model->find(array('fields'=>'Model.fieldName'))
  4.      
  5. $this->Model->find(array('fields'=>array('Model.fieldName')))
  6.      
  7. $this->Model->findAllBy<fieldName>(string $value, array $fields, array $order, int $limit, int $page, int $recursive);
  8.      
  9. $this->Permission->findAllByName('Some Name');
  10.      
  11. $workshop_lists = ClassRegistry::init('Workshop')->find('all',array(
  12.     'fields'=>array('user_id', 'title')
  13.     ),
  14.      array(
  15.        'conditions' => array('user_id' => $this->Auth->user('id')),
  16.        'group' => 'Workshop.user_id',
  17.         'order' => 'posted DESC',
  18.     ));
  19.      
  20. $this->Model->find('list',$params);
  21.      
  22. $params=array('fields'=>array('name'));
  23.      
  24. $arrayOfNames= $this->Model->find('list',array('fields'=>array('name')));
  25.      
  26. $this->Model->find('list', ['valueField' => 'fieldName']);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top