| @@ 34-45 (lines=12) @@ | ||
| 31 | *  | 
                                |
| 32 | * @return OneToOne  | 
                                |
| 33 | */  | 
                                |
| 34 | public function oneToOne($entity, $field = null, callable $callback = null)  | 
                                |
| 35 |     { | 
                                |
| 36 | return $this->addRelation(  | 
                                |
| 37 | new OneToOne(  | 
                                |
| 38 | $this->getBuilder(),  | 
                                |
| 39 | $this->getNamingStrategy(),  | 
                                |
| 40 | $this->guessSingularField($entity, $field),  | 
                                |
| 41 | $entity  | 
                                |
| 42 | ),  | 
                                |
| 43 | $callback  | 
                                |
| 44 | );  | 
                                |
| 45 | }  | 
                                |
| 46 | ||
| 47 | /**  | 
                                |
| 48 | * @param string $entity  | 
                                |
| @@ 66-77 (lines=12) @@ | ||
| 63 | *  | 
                                |
| 64 | * @return ManyToOne  | 
                                |
| 65 | */  | 
                                |
| 66 | public function manyToOne($entity, $field = null, callable $callback = null)  | 
                                |
| 67 |     { | 
                                |
| 68 | return $this->addRelation(  | 
                                |
| 69 | new ManyToOne(  | 
                                |
| 70 | $this->getBuilder(),  | 
                                |
| 71 | $this->getNamingStrategy(),  | 
                                |
| 72 | $this->guessSingularField($entity, $field),  | 
                                |
| 73 | $entity  | 
                                |
| 74 | ),  | 
                                |
| 75 | $callback  | 
                                |
| 76 | );  | 
                                |
| 77 | }  | 
                                |
| 78 | ||
| 79 | /**  | 
                                |
| 80 | * @param string $entity  | 
                                |