Showing posts with label cakephp. Show all posts
Showing posts with label cakephp. Show all posts
Friday, May 30, 2014
Gulpjs
Labels:
almendralejo,
beginner,
cakephp,
gruntjs,
gulpjs,
js,
screencast,
tests
Location:
06200 Almendralejo, Badajoz, España
Saturday, April 12, 2014
CakePHP - Containable Behaviour in Models
Ejemplo básico haciendo el bind del comportamiento on the fly
$this->University->Behaviors->load('Containable');
$containArray = array( 'Course' => array( 'Group' => array( 'Studen' => array( 'Marks' ) ) ) );
$options = array( 'contain' => $containArray, 'conditions' => 'University.name = "Universidad de Sevilla"', );
$sevillaMarks = $this->University->find('all', $options);
Maravilloso add-on incluído en el Core de CakePHP que nos facilita la tarea de cuando las relaciones a buscar empiezan más allá de tercer nivel en profundidad.
http://book.cakephp.org/2.0/en/core-libraries/behaviors/containable.html
$this->University->Behaviors->load('Containable');
$containArray = array( 'Course' => array( 'Group' => array( 'Studen' => array( 'Marks' ) ) ) );
$options = array( 'contain' => $containArray, 'conditions' => 'University.name = "Universidad de Sevilla"', );
$sevillaMarks = $this->University->find('all', $options);
Maravilloso add-on incluído en el Core de CakePHP que nos facilita la tarea de cuando las relaciones a buscar empiezan más allá de tercer nivel en profundidad.
http://book.cakephp.org/2.0/en/core-libraries/behaviors/containable.html
Labels:
almendralejo,
cakephp,
tip
Location:
06200 Almendralejo, Badajoz, España
Wednesday, July 17, 2013
Evitar recargar Fixtures entre Tests en CakePHP
¿Se puede evitar la recarga de fixtures entre tests en CakePHP?
Respuesta larga: Valora si quieres hacer esto, si sigues con esa intención sigue leyendo...
Subscribe to:
Posts (Atom)
