New records could not hold multiple habtm associates using ::set(). Fixes #160.
[akelos.git] / test / fixtures / app / models / landlord.php
blob452068d73092b40ad1ba8bbf446ffb0e4fe40b70
1 <?php
3 class Landlord extends ActiveRecord
5 // var $hasMany = 'properties';
6 var $hasOne = 'picture';
8 function validateOnCreate()
10 if(!empty($this->test_validators)){
11 foreach ($this->test_validators as $validator=>$args) {
12 call_user_func_array(array(&$this,$validator),$args);