I have the same problem. I stumpled across this:

  
http://forum.symfony-project.org/index.php?t=rview&goto=90931&th=24670#msg_90931

But I'd love to know if there was a cleaner way to do it. Any Doctrine
developers out there got any suggestions?

Thanks,

Tom

On Apr 5, 8:03 am, mstralka <[email protected]> wrote:
> Hi,
>
> An example in "The More with symfony" book chapter 8 shows how to
> create a doctrine behavior called CountCache that counts the number of
> Posts a Thread has related to 
> it:http://www.symfony-project.org/more-with-symfony/1_4/en/08-Advanced-D...
>
> I'm trying to use this behavior in my domain model but the sample code
> doesn't provide getters and setters for the "num_posts" column.  For
> example, I want to be able to do this:
>
> <?php echo $thread->getNumPosts() ?>
>
> But a 500 exception is thrown which reads:
> Unknown record property / related component "num_posts" on "Thread"
>
> Am I missing something?
>
> Thanks

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" 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-users?hl=en

Reply via email to