Fixing content type ordering when content_type is not defined.
[akelos.git] / test / fixtures / app / models / post.php
blobe3c771e399fd39063c9e0b6ff9c6c56ff35f0bc0
1 <?php
3 class Post extends ActiveRecord
5 var $has_many = 'comments';
6 var $habtm = 'tags,users';
8 function validate()
10 if ($this->comments_count<0){
11 $this->addError('comments_count','can\'t be negative');