Book Image

CakePHP 2 Application Cookbook

By : James Watts, Cake Software Foundation, Inc.
Book Image

CakePHP 2 Application Cookbook

By: James Watts, Cake Software Foundation, Inc.

Overview of this book

Table of Contents (20 chapters)
CakePHP 2 Application Cookbook
Credits
Foreword
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Chapter 6. Model Layer

In this chapter, we will cover the following topics:

  • Has and belongs to many (HABTM)

  • Joining through

  • Containing models

  • Custom finders

  • On-the-fly associations

  • Using transactions