Fork me on GitHub

The Blog > Getting To Know Propel 1.5: Writing A Behavior

The Propel Team – 03 June 2010

A recent post published in this very blog illustrated the power of the hooks offered by the ActiveRecord and Query classes. In this previous post, an aggregate column on a `PollQuestion` class was kept up to date every time a related `PollAnswer` object was saved, edited, or deleted. Now it's time to make this code really reusable across models, and the best way to do so is to move the code from the model to a behavior.

Read the rest of this post >>

Found a typo ? Something is wrong in this documentation ? Just fork and edit it !