title: How to get the property of Object in Symfony
body: <p>Hey How Can i get any specific property from the whole object.
  I have this query </p>
  
  <pre><code>$portfolios = $this-&gt;getDoctrine()
      -&gt;getRepository('MunichInnovationGroupBundle:PmPortfolios')
      -&gt;findBy(array('user' =&gt; '1'));
  foreach ($portfolios as $portfolio){
   if($portfolio.isDefault == true){
     $default_portfolio = $portfolio;
   }
    echo $portfolio.name;
  }
  </code></pre>
  
  <p>The complete object looks like this </p>
  
  <pre><code>MunichInnovationGroup\Bundle\Entity\PmPortfolios Object
  (
  [id:MunichInnovationGroup\Bundle\Entity\PmPortfolios:private] =&gt; 991654b4-aa73-11e1-bdce-4a7b883b8e17
  [portfolioName:MunichInnovationGroup\Bundle\Entity\PmPortfolios:private] =&gt; Umair Portfolio 1
  [description:MunichInnovationGroup\Bundle\Entity\PmPortfolios:private] =&gt; Thsi is the description for Umairs portfolio 1
  [permalink:MunichInnovationGroup\Bundle\Entity\PmPortfolios:private] =&gt; premalink
  [sharingCode:MunichInnovationGroup\Bundle\Entity\PmPortfolios:private] =&gt; asdbnvg123dg
  [shared:MunichInnovationGroup\Bundle\Entity\PmPortfolios:private] =&gt; 
  [sharedPortfolioCalls:MunichInnovationGroup\Bundle\Entity\PmPortfolios:private] =&gt; 
  [isDefault:MunichInnovationGroup\Bundle\Entity\PmPortfolios:private] =&gt; 1
  [user:MunichInnovationGroup\Bundle\Entity\PmPortfolios:private] =&gt; Proxies\MunichInnovationGroupBundleEntityUmUsersProxy Object
  </code></pre>
  
  <p>How can I get the isDefault value ?</p>
  
  <p>Thanks in advance</p>