改进一对一关联

This commit is contained in:
thinkphp
2017-02-23 17:43:29 +08:00
parent 87c74b3944
commit d85579faf8
2 changed files with 13 additions and 1 deletions

View File

@@ -194,7 +194,9 @@ abstract class OneToOne extends Relation
*/
public function getEagerlyType()
{
$this->removeOption();
if (0 == $this->eagerlyType) {
$this->removeOption();
}
return $this->eagerlyType;
}