Esempio n. 1
0
 /**
  * Get the properties for this note.
  */
 public function properties()
 {
     $foreignKey = 'strKey';
     $localKey = 'strKey';
     $instance = new Property();
     $instance->setConnection($this->getConnectionName());
     return new HasMany($instance->newQuery(), $this, $foreignKey, $localKey);
     //return $this->HasOne('App\Property', 'strKey', 'strKey');
 }