src/bundles/Database/Model/Relation/HasOne.php
protected function prepare_query() 
	{
		$this->query->where( $this->foreign_key, $this->local_model->{$this->local_key} )
			->limit( 1 );
	}
protected function prepare_query() 
	{
		$this->query->where( $this->foreign_key, $this->local_model->{$this->local_key} )
			->limit( 1 );
	}
protected function prepare_query ( ) { $ this -> query -> where ( $ this -> foreign_key , $ this -> local_model -> { $ this -> local_key } ) -> limit ( 1 ) ; }
Prepare the query object

@return void
Prepare the query object