BelongsTo (class)
Class BelongsTo
Represents an 1 - N relationship where the source side of the relation is related to only one record in the target table.
An example of a BelongsTo association would be Article belongs to Author.
- Cake\ORM\Association uses Cake\Core\ConventionsTrait, Cake\ORM\Locator\LocatorAwareTrait
-
Cake\ORM\Association\BelongsTo uses Cake\ORM\Association\SelectableAssociationTrait 登录查看完整内容