I made a generic interface to be able to use it with PHPCR too.
Le 3 mars 2014 18:42, "Thomas" <notifications@github.com> a écrit :

> In Twig/Extension/SonataTranslationExtension.php:
>
> > +
> > +    /**
> > +     * Check if $object is translatable
> > +     *
> > +     * @param  mixed $object
> > +     * @return bool
> > +     */
> > +    public function isTranslatable($object)
> > +    {
> > +        if (is_null($object)) {
> > +            return false;
> > +        }
> > +
> > +        return (
> > +            in_array(
> > +                'Sonata\TranslationBundle\Model\TranslatableInterface',
>
> Cannot we access to the Gedmo API to know if the object is translatable. I
> don't see the value of the interface.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/sonata-project/SonataTranslationBundle/pull/1/files#r10219872>
> .
>