Book Image

FuelPHP Application Development Blueprints

By : Sebastien Drouyer
Book Image

FuelPHP Application Development Blueprints

By: Sebastien Drouyer

Overview of this book

Table of Contents (13 chapters)
FuelPHP Application Development Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Conception


We will need the following two models:

Entity Relationship diagram (Min-Max notation)

  • User: Since the model's table will be generated from the Auth package's migration, the columns will already be generated. The columns we need are username and password.

  • Post: Each post has a content and a created_at property. Since each post can only be published by a single user and each user can publish many posts, there is a belongs_to relationship between posts and users and a has_many relationship between users and posts. Thus, an additional user_id property must be added for the relationship.