This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » General plug-ins » What query method for sfPropel15Plugin is equal to Peer's doSelectWithI18n?
What query method for sfPropel15Plugin is equal to Peer's doSelectWithI18n? [message #102134] Wed, 07 July 2010 14:36
septem  is currently offline septem
Messages: 19
Registered: January 2009
Location: Riga, Latvia
Junior Member
What would be the equal code for sfPropel15Plugin using queries?
$criteria = new Criteria();
$criteria->setLimit(5);
$results = ExamplePeer::doSelectWithI18n($criteria);


This way you can't limit the results:
$results = ExampleQuery::create()
  ->useExampleI18n()
    ->filterByCulture($culture)
  ->endUse()
  ->with('ExampleI18n')
  ->find();

[Updated on: Wed, 07 July 2010 14:40]


Ivo Az.
Previous Topic:[sfLucenePlugin] Field name "sfl_type" not found in document.
Next Topic:mpStarRatin/mpFormChoiceRating Plugin
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software