Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit d128590

Browse files
committed
Adding help doc for some confusing relationships
1 parent a7b7d3b commit d128590

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Ardent/Ardent.php

+3
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,15 @@ abstract class Ardent extends Model {
177177
*/
178178
protected static $relationsData = array();
179179

180+
/** This class "has one model" if its ID is an FK in that model */
180181
const HAS_ONE = 'hasOne';
181182

183+
/** This class "has many models" if its ID is an FK in those models */
182184
const HAS_MANY = 'hasMany';
183185

184186
const HAS_MANY_THROUGH = 'hasManyThrough';
185187

188+
/** This class "belongs to a model" if it has a FK from that model */
186189
const BELONGS_TO = 'belongsTo';
187190

188191
const BELONGS_TO_MANY = 'belongsToMany';

0 commit comments

Comments
 (0)