[symfony-users] Help with model

2010-07-12 Thread davidsonrob
Hi,

I'm trying to over ride a base model value.  Its super simple but im
not sure how it should be done?

/**
 * This class has been auto-generated by the Doctrine ORM Framework
 */
class Customer extends BaseCustomer
{

public function getFirstname()
{

return strtoupper($this->firstname);

}
}

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] How do you log errors in the model the correct way?

2011-02-17 Thread davidsonrob
Hi,

As the complexity of my models has grown I have felt the need to log
errors in the model to help me thoubleshoot

The way I have been doing it is something like

sfContext::getInstance()->getLogger()>err('{artistImage}
getImageThumbPath unexpected thumbnailType input param');


Which all works fine, it gives me a nice little error in my
debugtoolbar.

However when I use the CLI for tasks such as
php symfony doctrine:build --all

rebuilding models etc I get an sfContext error.

... So what would be the corrrect way for me to log errors in my model?

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en