Code Duplication    Length = 17-17 lines in 3 locations

src/cli/Database/Map/ChannelTableMap.php 1 location

@@ 147-163 (lines=17) @@
144
    /**
145
     * Build the RelationMap objects for this table relationships
146
     */
147
    public function buildRelations()
148
    {
149
        $this->addRelation('Instance', '\\Jalle19\\StatusManager\\Database\\Instance', RelationMap::MANY_TO_ONE, array (
150
  0 =>
151
  array (
152
    0 => ':instance_name',
153
    1 => ':name',
154
  ),
155
), null, null, null, false);
156
        $this->addRelation('Subscription', '\\Jalle19\\StatusManager\\Database\\Subscription', RelationMap::ONE_TO_MANY, array (
157
  0 =>
158
  array (
159
    0 => ':channel_id',
160
    1 => ':id',
161
  ),
162
), null, null, 'Subscriptions', false);
163
    } // buildRelations()
164
165
    /**
166
     * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table.

src/cli/Database/Map/ConnectionTableMap.php 1 location

@@ 165-181 (lines=17) @@
162
    /**
163
     * Build the RelationMap objects for this table relationships
164
     */
165
    public function buildRelations()
166
    {
167
        $this->addRelation('Instance', '\\Jalle19\\StatusManager\\Database\\Instance', RelationMap::MANY_TO_ONE, array (
168
  0 =>
169
  array (
170
    0 => ':instance_name',
171
    1 => ':name',
172
  ),
173
), null, null, null, false);
174
        $this->addRelation('User', '\\Jalle19\\StatusManager\\Database\\User', RelationMap::MANY_TO_ONE, array (
175
  0 =>
176
  array (
177
    0 => ':user_id',
178
    1 => ':id',
179
  ),
180
), null, null, null, false);
181
    } // buildRelations()
182
183
    /**
184
     * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table.

src/cli/Database/Map/InputTableMap.php 1 location

@@ 171-187 (lines=17) @@
168
    /**
169
     * Build the RelationMap objects for this table relationships
170
     */
171
    public function buildRelations()
172
    {
173
        $this->addRelation('Instance', '\\Jalle19\\StatusManager\\Database\\Instance', RelationMap::MANY_TO_ONE, array (
174
  0 =>
175
  array (
176
    0 => ':instance_name',
177
    1 => ':name',
178
  ),
179
), null, null, null, false);
180
        $this->addRelation('Subscription', '\\Jalle19\\StatusManager\\Database\\Subscription', RelationMap::ONE_TO_MANY, array (
181
  0 =>
182
  array (
183
    0 => ':input_uuid',
184
    1 => ':uuid',
185
  ),
186
), null, null, 'Subscriptions', false);
187
    } // buildRelations()
188
189
    /**
190
     * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table.