Exemple #1
0
 /**
  * @return null|Store
  */
 protected function members()
 {
     if ($this->members === null) {
         $members = Organisations::findMembers($this->sid);
         if ($members instanceof Store) {
             $this->members = $members;
         }
     }
     return $this->members;
 }
 public function testWith()
 {
     $org = Organisations::findOrg('salvage')->with('members');
     $this->assertInstanceOf('StarCitizen\\Models\\Store', $org->members);
 }