Mudanças
This commit is contained in:
@@ -16,7 +16,7 @@ class BelongsTo {
|
|||||||
$this->localElement = $localElement;
|
$this->localElement = $localElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Yes
|
||||||
function get() {
|
function get() {
|
||||||
return $this->foreignObject::findOne(Array($this->remoteField => Array('=', $this->localElement->{$this->localField})));
|
return $this->foreignObject::findOne(Array($this->remoteField => Array('=', $this->localElement->{$this->localField})));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user