Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Product extends Aware {
- public static $rules = array(
- 'sku' => 'required',
- 'quantity' => 'required|integer',
- 'cost' => 'required|numeric'
- );
- public function languages() {
- return $this->has_many_and_belongs_to('Language');
- }
- public function images() {
- return $this->has_many('Image');
- }
- }
Add Comment
Please, Sign In to add comment