1. matteosister
  2. sfPropelORMTaggableBehaviorPlugin


matteosister  committed 0abb825

filterByTagName in Query Object

  • Participants
  • Parent commits 986e91c
  • Branches master

Comments (0)

Files changed (1)

File README.rst

View file
  • Ignore whitespace
     // Query object
     $articles = ArticleQuery::create()->filterByTagName('propel')->find();
     // you could also use the propel generated method. filterByTagName is just a shortcut of
     $articles = ArticleQuery::create()->useArticleTaggingQuery()->useTagQuery()->filterByName('propel')->endUse()->endUse();
     // if you have a tag object (for example in a list of article tagged with...) propel has already done the dirty job
     $tag = TagQuery::create()->findOneByName('symfony');
     $articles = ArticleQuery::create()->filterByTag($tag)->find();