Location: PHPKode > projects > ActiveRecord > php-activerecord/examples/orders/models/Person.php
<?php
class Person extends ActiveRecord\Model
{
	// a person can have many orders and payments
	static $has_many = array(
		array('orders'),
		array('payments'));

	// must have a name and a state
	static $validates_presence_of = array(
		array('name'), array('state'));
}
?>
Return current item: ActiveRecord