title: Non-Static Method should not be called Statically
body: <p>I am using a repository pattern and am trying to establish relationships between models. When I try to run the store() method (in the controller) which is trying to use the user() method (which establishes the relationship with the Party model), I get the following error message:</p>
  
  <blockquote>
    <p>Non-static method Party::user() should not be called statically, assuming $this from incompatible context</p>
  </blockquote>
  
  <p>I don't understand why I get this error when I try to run the user() relationship method, but all of the other methods (including $this->party->all(), $this->party->create($data)), work just fine.</p>
  
  <p>Here is the relevant code:</p>
  
  <pre><code>// PartiesController.php
  public function __construct(Party $party){
    $this-&gt;party = $party
  }
  
  public function store(){
    $data = Input::all();
    $user = Sentry::getUser(); 
    $this-&gt;party-&gt;user()-&gt;create($data);
  }
  
  // Party.php
  class Party extends Eloquent{
    public function user(){
      return $this-&gt;belongsTo('User');
    }
  }
  
  // User.php
  use Cartalyst\Sentry\Users\Eloquent\User as SentryUserModel;
  
  class User extends SentryUserModel implements UserInterface, RemindableInterface {
    public function party(){
      return $this-&gt;hasMany('Party');
    }
  }
  
  // PartyRepository.php
  namespace repositories\Party;
  
  interface PartyRepository{
    public function all();
  
    public function findByID($id);
  
    public function create($input);
  
    public function user();
  }
  
  // EloquentPartyRepository.php
  namespace repositories\Party;
  use Party;
  
  class EloquentPartyRepository implements PartyRepository{
    public function all(){
      return Party::all();
    }
  
    public function create($input){
      return Party::create($input);
    }
  
    public function user(){
      return Party::user();
    }
  }
  </code></pre>