Skip to content

Instantly share code, notes, and snippets.

@dereuromark
Created July 25, 2013 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dereuromark/6080212 to your computer and use it in GitHub Desktop.
Save dereuromark/6080212 to your computer and use it in GitHub Desktop.
Try to get associated callbacks working for certain behaviors via AppModel hack
public function afterFind($results, $primary = false) {
if (!$primary && $this->attached('Translate')) {
$results = $Model->Behaviors->Translate->afterFind($this, $results, $primary);
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment