src/Zicht/Bundle/MessagesBundle/Entity/Message.php
public function hasTranslation($locale)
    {
        foreach ($this->translations as $translation) {
            if ($locale == $translation->locale) {
                return $translation;
            }
        }
        return false;
    }
public function hasTranslation($locale)
    {
        foreach ($this->translations as $translation) {
            if ($locale == $translation->locale) {
                return $translation;
            }
        }
        return false;
    }
public function hasTranslation ( $ locale ) { foreach ( $ this -> translations as $ translation ) { if ( $ locale == $ translation -> locale ) { return $ translation ; } } return false ; }
Checks if the translation for the specified locale exists.

@param string $locale
@return bool
Checks if the translation for the specified locale exists .