title: Cannot access protected property Illuminate\Database\MySqlConnection::$pdo
body: <p>What is this error and how to catch it?</p>
  
  <pre><code>Cannot access protected property Illuminate\Database\MySqlConnection::$pdo
  </code></pre>
  
  <p>Heres my code:</p>
  
  <pre><code>if($user-&gt;save())
          {
              try
              {
                  DB::connection()-&gt;pdo-&gt;beginTransaction();
  
                  Mymodel::insert('credit-card',array('user_id'=&gt;$user-&gt;id,'card_holder'=&gt;Input::get('custname')));
                  Mymodel::insert('billing-info',array('user_id'=&gt;$user-&gt;id,'name'=&gt;Input::get('custname')));
  
                  DB::connection()-&gt;pdo-&gt;commit();
  
                  Auth::login( $user );
                  return Redirect::to( 'profile' );
              }
              catch (\PDOException $e)
              {
                  $user-&gt;delete();
                  DB::connection()-&gt;pdo-&gt;rollBack();
                  return 'ERROR: Something went wrong. Please try again later';
              }
          }
  </code></pre>