/** * Gets join type for the given join identifier * * @param string $joinId * * @return null|string NULL for autodetect, or a string represents the join type, for example 'INNER' or 'LEFT' */ protected function getJoinType($joinId) { $relationType = $this->joinIdHelper->getJoinType($joinId); if ($relationType) { return strtoupper($relationType); } return null; }
/** * Gets join type for the given join identifier * * @param string $joinId * * @return null|string NULL for autodetect, or a string represents the join type, for example 'inner' or 'left' */ protected function getJoinType($joinId) { return $this->joinIdHelper->getJoinType($joinId); }
/** * @dataProvider getJoinTypeProvider */ public function testGetJoinType($joinId, $expected) { $this->assertEquals($expected, $this->helper->getJoinType($joinId)); }