private function getSlaveData($slaveTable, $slavePk, $junction, $column, $value, $columns)
    {
        $ids = $this->queryJunctionTable($junction, $column, $value, '*');

        if (empty($ids)) {
            return array();
        } else {
            // Query only in case there attached IDs found
            return $this->queryTable($slaveTable, $slavePk, $ids, $columns);
        }
    }
private function getSlaveData($slaveTable, $slavePk, $junction, $column, $value, $columns)
    {
        $ids = $this->queryJunctionTable($junction, $column, $value, '*');

        if (empty($ids)) {
            return array();
        } else {
            // Query only in case there attached IDs found
            return $this->queryTable($slaveTable, $slavePk, $ids, $columns);
        }
    }
private function getSlaveData ( $ slaveTable , $ slavePk , $ junction , $ column , $ value , $ columns ) { $ ids = $ this -> queryJunctionTable ( $ junction , $ column , $ value , '*' ) ; if ( empty ( $ ids ) ) { return array ( ) ; } else { // Query only in case there attached IDs found return $ this -> queryTable ( $ slaveTable , $ slavePk , $ ids , $ columns ) ; } }
Returns slave data from associated table

@param string $slaveTable Slave (second) table name
@param string $slavePk Primary column name in slave table
@param string $junction Junction table name
@param string $column Column in junction table to be queried
@param string $value Value for the column being queried
@param mixed $columns Columns to be selected in slave table
@return array
Returns slave data from associated table