Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
- Fix error in Inet\SugarCrm\Bean example
  • Loading branch information
Jorge Sá Pereira committed May 5, 2016
1 parent b9bacc1 commit 44fe530
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ Usage Example:
require_once 'vendor/autoload.php';
use Psr\Log\NullLogger;
use Inet\SugarCRM\EntryPoint;
use Inet\SugarCRM\DB;
use Inet\SugarCRM\Bean;

if (!EntryPoint::isCreated()) {
Expand All @@ -83,11 +82,9 @@ if (!EntryPoint::isCreated()) {
EntryPoint::createInstance($sugarApp, '1');
}
$sugarEP = EntryPoint::getInstance();
// get the DB Class
$inetSugarDB = new DB($sugarEP);

// instanciate the Bean class to retrieve User with id 1
$inetSugarBean = new Bean($sugarEP, $inetSugarDB);
$inetSugarBean = new Bean($sugarEP);
$adminUser = $inetSugarBean->getBean('Users', 1);
echo $adminUser->name;
```
Expand Down

0 comments on commit 44fe530

Please sign in to comment.