How to check if not instance of some class in symfony2
<p>I want to execute some functions if entity is member of few classes but not some.</p>

<p>There is a function called <code>instanceof</code>.</p>

<p>But is there something like</p>

<pre><code>if ($entity !instanceof [User,Order,Product])
</code></pre>
