Skip to content

Commit

Permalink
Updating reference of strategies to self
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Conroy committed Mar 7, 2015
1 parent 7d3771f commit c7e51ca
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ORM/Association/BelongsTo.php
Expand Up @@ -37,7 +37,7 @@ class BelongsTo extends Association
*
* @var array
*/
protected $_validStrategies = [parent::STRATEGY_JOIN, parent::STRATEGY_SELECT];
protected $_validStrategies = [self::STRATEGY_JOIN, self::STRATEGY_SELECT];

/**
* Sets the name of the field representing the foreign key to the target table.
Expand Down
4 changes: 2 additions & 2 deletions src/ORM/Association/BelongsToMany.php
Expand Up @@ -61,7 +61,7 @@ class BelongsToMany extends Association
*
* @var string
*/
protected $_strategy = parent::STRATEGY_SELECT;
protected $_strategy = self::STRATEGY_SELECT;

/**
* Junction table instance
Expand Down Expand Up @@ -119,7 +119,7 @@ class BelongsToMany extends Association
*
* @var array
*/
protected $_validStrategies = [parent::STRATEGY_SELECT, parent::STRATEGY_SUBQUERY];
protected $_validStrategies = [self::STRATEGY_SELECT, self::STRATEGY_SUBQUERY];

/**
* Sets the name of the field representing the foreign key to the target table.
Expand Down
4 changes: 2 additions & 2 deletions src/ORM/Association/HasMany.php
Expand Up @@ -45,14 +45,14 @@ class HasMany extends Association
*
* @var string
*/
protected $_strategy = parent::STRATEGY_SELECT;
protected $_strategy = self::STRATEGY_SELECT;

/**
* Valid strategies for this type of association
*
* @var array
*/
protected $_validStrategies = [parent::STRATEGY_SELECT, parent::STRATEGY_SUBQUERY];
protected $_validStrategies = [self::STRATEGY_SELECT, self::STRATEGY_SUBQUERY];

/**
* Returns whether or not the passed table is the owning side for this
Expand Down
2 changes: 1 addition & 1 deletion src/ORM/Association/HasOne.php
Expand Up @@ -38,7 +38,7 @@ class HasOne extends Association
*
* @var array
*/
protected $_validStrategies = [parent::STRATEGY_JOIN, parent::STRATEGY_SELECT];
protected $_validStrategies = [self::STRATEGY_JOIN, self::STRATEGY_SELECT];

/**
* Sets the name of the field representing the foreign key to the target table.
Expand Down

0 comments on commit c7e51ca

Please sign in to comment.