Skip to content

Instantly share code, notes, and snippets.

View neilcrookes's full-sized avatar

Neil Crookes neilcrookes

View GitHub Profile
# Output from running `composer update clue/soap-react --with-dependencies`
Your requirements could not be resolved to an installable set of packages.
Problem 1
- clue/soap-react dev-master requires clue/buzz-react ^2.5 -> satisfiable by clue/buzz-react[v2.5.0].
- clue/soap-react dev-master requires clue/buzz-react ^2.5 -> satisfiable by clue/buzz-react[v2.5.0].
- Conclusion: don't install clue/buzz-react v2.5.0
- Installation request for clue/soap-react dev-master -> satisfiable by clue/soap-react[dev-master].
@neilcrookes
neilcrookes / PostController.php
Created October 29, 2015 20:13
Example syntax for validating multi-record forms
<?php
class ProductController {
/**
* Store a new product that belongs to multiple categories.
*
* @param Request $request
* @return Response
*/
<?php
/**
* Provides counter cache behavior for HABTM records.
*
* Example: Posts habtm Tags and tags table contains post_count field
*
* class Post extends AppModel {
* var $name = 'Post';
* var $actsAs = array('HabtmCounterCache');
* var $hasAndBelongsToMany = array('Tag');