Author: dordille
Date: 2010-09-10 23:43:01 +0200 (Fri, 10 Sep 2010)
New Revision: 30882
Modified:
plugins/sfDoctrineActAsTaggablePlugin/trunk/README
Log:
Updated README for Taggable::preloadTags
Modified: plugins/sfDoctrineActAsTaggablePlugin/trunk/README
===================================================================
--- plugins/sfDoctrineActAsTaggablePlugin/trunk/README 2010-09-10 21:34:46 UTC
(rev 30881)
+++ plugins/sfDoctrineActAsTaggablePlugin/trunk/README 2010-09-10 21:43:01 UTC
(rev 30882)
@@ -324,14 +324,14 @@
#!php
<?php
$posts = PluginTagTable::getObjectTaggedWith('toto,tutu', array('model' =>
'Post'));
- sfPropelActAsTaggableBehavior::preloadTags($posts);
+ Taggable::preloadTags($posts);
foreach ($posts as $post)
{
- echo $post-getTitle();
+ echo $post->getTitle();
// won't require one request at each loop, as tags have been preloaded.
- var_dump($post-getTags());
+ var_dump($post->getTags());
}
### The Tag Widget Renderer ###
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.