Created
April 25, 2023 16:33
-
-
Save cesarockstar1985/52be72f1d9d563de82b6310d0f7a4a1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->hasMany('Todos', [ | |
'foreignKey' => 'foreign_key', | |
'className' => 'CakeDC/Todo.Todos', | |
'conditions' => [ | |
'model' => 'Bonds', | |
], | |
]); | |
$this->hasOne('FollowUps', [ | |
'foreignKey' => 'bond_id', | |
'joinType' => 'LEFT', | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment