Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fixes #4993 #5868

Closed

Conversation

samsonasik
Copy link
Contributor

Fixes #4993

@samsonasik
Copy link
Contributor Author

@froschdesign DocBlocks added, thanks ;)

@samsonasik
Copy link
Contributor Author

@froschdesign done ;). fixed;

@@ -65,8 +66,10 @@ public function addFeatures(array $features)

public function addFeature(AbstractFeature $feature)
{
if (!$feature->getTableGateway() instanceof TableGatewayInterface && $this->tableGateway instanceof TableGatewayInterface) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Features are a feature of AbstractTable's not TableInterfaces, so no need to check for TableGatewayInterface. Additionally, AbstractFeature objects are already AbstractTableGateways themselves (so they can share object state without having a public API with the actual TableGateway object). So I don't think this check is needed here.

@samsonasik
Copy link
Contributor Author

@ralphschindler fixed. please let me know if I missed something ;)

@froschdesign
Copy link
Member

@ralphschindler
Good point!

@weierophinney
Copy link
Member

@ralphschindler Can you update this with a milestone, please?

@ralphschindler ralphschindler added this to the 2.2.6 milestone Mar 4, 2014
weierophinney added a commit that referenced this pull request Mar 4, 2014
@ralphschindler ralphschindler mentioned this pull request Mar 5, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zend\Db\TableGateway\Feature\FeatureSet::addFeature() at line 69
4 participants