Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Language extends Aware {
- public static $rules = array(
- 'title' => 'required',
- 'tld' => 'required',
- 'currency' => 'required'
- );
- public function products() {
- return $this->has_many_and_belongs_to('Product')->with(array('title', 'slug', 'description', 'keywords', 'price', 'purchases', 'active'));
- }
- }
Add Comment
Please, Sign In to add comment