HasOne (class)
Class HasOne
Represents an 1 - 1 relationship where the source side of the relation is related to only one record in the target table and vice versa.
An example of a HasOne association would be User has one Profile.
- Cake\ORM\Association uses Cake\Core\ConventionsTrait, Cake\ORM\Locator\LocatorAwareTrait
- Cake\ORM\Association\HasOne uses Cake\ORM\Association\DependentDeleteTrait, 登录查看完整内容