addHabitant() public method

public addHabitant ( LivesIn $livesIn )
$livesIn LivesIn
コード例 #1
0
ファイル: User.php プロジェクト: graphaware/neo4j-php-ogm
 public function setCity(City $city, $since = null)
 {
     $since = null !== $since ? $since : 123;
     $rel = new LivesIn($this, $city, $since);
     $this->setLivesIn($rel);
     $city->addHabitant($rel);
 }