diff --git a/manual/docs/en/working-with-objects/dealing-with-relations.txt b/manual/docs/en/working-with-objects/dealing-with-relations.txt index 47707ce86..deddc4155 100644 --- a/manual/docs/en/working-with-objects/dealing-with-relations.txt +++ b/manual/docs/en/working-with-objects/dealing-with-relations.txt @@ -120,3 +120,17 @@ $user->unlink('Phonenumber', array(1, 3)); $user->Phonenumber->count(); // 1 + ++++ Working with related records + +++++ Testing the existance of a relation + +$obj = new Model(); +if(isset($obj->Relation())) { // returns false + ... +} +$obj->Relation = new Relation(); +if(isset($obj->Relation())) { // returns true + ... +} + \ No newline at end of file