ensureValid() in models when working with Symfony