Fixing content type ordering when content_type is not defined.
[akelos.git] / test / fixtures / app / models / extended_post.php
blob4b91399be5c8763e91076812a24fcd93bc135e2b
1 <?php
3 class ExtendedPost extends ActiveRecord
5 var $has_many = 'extended_comments';
7 function validate()
9 if ($this->comments_count<0){
10 $this->addError('comments_count','can\'t be negative');