Skip to content

Commit

Permalink
Dev: TODOS: participant_attribute_names ->participant_attribute_name (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
TonisOrmisson authored and LouisGac committed Oct 9, 2017
1 parent 9897b1f commit 1b015d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions application/models/ParticipantAttribute.php
Expand Up @@ -22,7 +22,7 @@
* @property string $value
*
* @property Participant $participant
* @property ParticipantAttributeName $participant_attribute_names //todo this should be singular not plural
* @property ParticipantAttributeName $participant_attribute_name
*/
class ParticipantAttribute extends LSActiveRecord
{
Expand Down Expand Up @@ -55,7 +55,7 @@ public function relations()
// class name for the relations automatically generated below.
return array(
'participant' => array(self::HAS_ONE, 'Participant', 'participant_id'),
'participant_attribute_names'=>array(self::BELONGS_TO, 'ParticipantAttributeName', 'attribute_id')
'participant_attribute_name'=>array(self::BELONGS_TO, 'ParticipantAttributeName', 'attribute_id')
);
}

Expand Down
4 changes: 2 additions & 2 deletions application/models/ParticipantAttributeNameLang.php
Expand Up @@ -19,7 +19,7 @@
* @property string $attribute_name
* @property string $lang
*
* @property ParticipantAttributeName $participant_attribute_names //TODO should be singular
* @property ParticipantAttributeName $participant_attribute_name
*/
class ParticipantAttributeNameLang extends LSActiveRecord
{
Expand Down Expand Up @@ -63,7 +63,7 @@ public function relations()
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
'participant_attribute_names'=>array(self::BELONGS_TO, 'ParticipantAttributeName', 'attribute_id')
'participant_attribute_name'=>array(self::BELONGS_TO, 'ParticipantAttributeName', 'attribute_id')
);
}

Expand Down

0 comments on commit 1b015d7

Please sign in to comment.