added module support!

This commit is contained in:
Taylor Otwell
2011-08-03 22:10:07 -05:00
parent 927c522e67
commit f0f3dffc11
34 changed files with 363 additions and 203 deletions

View File

View File

@@ -0,0 +1,19 @@
<?php
namespace Entities;
class User extends \Eloquent {
public function friends()
{
return $this->has_many('Entities\\Friend');
}
public function roles()
{
return $this->has_and_belongs_to_many('Role');
}
}
class Friend extends \Eloquent {}

View File

@@ -0,0 +1,3 @@
<?php
class Role extends \Eloquent {}