Book Image

Learning Phalcon PHP

Book Image

Learning Phalcon PHP

Overview of this book

Table of Contents (17 chapters)
Learning Phalcon PHP
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 4. Database Architecture, Models, and CLI Applications

Now that we know the basics of Phalcon's ORM and ODM, we can create the database architecture and most of the models needed for our project. We will also create some CLI tasks in order to help us work faster. Because there is a large amount of code, when referring to some of the parts in Chapter 1, Getting Started with Phalcon, I will use the abbreviation CSC (check source code).

We will cover the following topics in the chapter:

  • The database architecture

  • Models

  • CLI applications