From c7e51cacf8011cfad2a478d5aefc297240ec1532 Mon Sep 17 00:00:00 2001 From: Patrick Conroy Date: Sat, 7 Mar 2015 09:58:35 -0500 Subject: [PATCH] Updating reference of strategies to self --- src/ORM/Association/BelongsTo.php | 2 +- src/ORM/Association/BelongsToMany.php | 4 ++-- src/ORM/Association/HasMany.php | 4 ++-- src/ORM/Association/HasOne.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ORM/Association/BelongsTo.php b/src/ORM/Association/BelongsTo.php index fdeffdfcf08..6a0c22de8b1 100644 --- a/src/ORM/Association/BelongsTo.php +++ b/src/ORM/Association/BelongsTo.php @@ -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. diff --git a/src/ORM/Association/BelongsToMany.php b/src/ORM/Association/BelongsToMany.php index 1d2a420fbd4..f32b94a22f9 100644 --- a/src/ORM/Association/BelongsToMany.php +++ b/src/ORM/Association/BelongsToMany.php @@ -61,7 +61,7 @@ class BelongsToMany extends Association * * @var string */ - protected $_strategy = parent::STRATEGY_SELECT; + protected $_strategy = self::STRATEGY_SELECT; /** * Junction table instance @@ -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. diff --git a/src/ORM/Association/HasMany.php b/src/ORM/Association/HasMany.php index 0f260aa0b76..09ea480e20e 100644 --- a/src/ORM/Association/HasMany.php +++ b/src/ORM/Association/HasMany.php @@ -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 diff --git a/src/ORM/Association/HasOne.php b/src/ORM/Association/HasOne.php index 32ff0775a68..af6dad73f4a 100644 --- a/src/ORM/Association/HasOne.php +++ b/src/ORM/Association/HasOne.php @@ -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.