/**
  * Retrieve a single object by pkey.
  *
  * @param      int $pk the primary key.
  * @param      PropelPDO $con the connection to use
  * @return     MetadataProfile
  */
 public static function retrieveByPK($pk, PropelPDO $con = null)
 {
     if (null !== ($obj = MetadataProfilePeer::getInstanceFromPool((string) $pk))) {
         return $obj;
     }
     $criteria = new Criteria(MetadataProfilePeer::DATABASE_NAME);
     $criteria->add(MetadataProfilePeer::ID, $pk);
     $v = MetadataProfilePeer::doSelect($criteria, $con);
     return !empty($v) > 0 ? $v[0] : null;
 }