phalcon/phalcon-devtools — pull request #68 by michaelkrone (2013-04-20 00:33:45+00:00)
Title: Fixed belongsTo and hasMany relations 

In Model.php, the template name for the relation methods was mistaken with the metadata iterator element name ($relations and $templateRelation) so that only "Array" got printed into the initialize method template.
Also added a smicolon at the end of the $templateRelation template string to fix a syntax error.