Found 3 blog posts with the tag "cookbook"

Doctrine 2 "Behaviours" in a Nutshell

Posted about 1 year ago by beberlei

This blog entry relates to an outdated Doctrine 2 Alpha version. Please see the documentation for the most up to date behavior. One of the most common fallacies out there about Doctrine 2 abandoning Behaviours is that developers now have to implement fancy logic to re-implement them yourself... [read more] [0 Comments]

Using Behaviors to Share Relationship Properties

Posted over 3 years ago by jwage

Define The Schema In this article we will demonstrate some more ways to add functionality to Doctrine by using the behavior system. We will call this behavior SharedProperties and it allows you to share properties between your models and one-to-one relationships. Here is an example schema that w... [read more] [0 Comments]

Cookbook Recipe: Relation DQL Behavior

Posted over 3 years ago by jwage

Today I will teach you how to write a simple Doctrine behavior. You will learn some of the basics of creating a behavior and you will gain some pretty cool functionality for your relationships. We will write a behavior called RelationDql which allows you to add default query parts that are autom... [read more] [0 Comments]