Hi there',
I try to get one record in my custom php, located on root but I think I miss something.
Could you give me help on it; Regaridng ORM: How to manage entities in your code , I try follwing code but I couldn't manage to get it.
<?php <?php
// My TEST.PHP
ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(E_ALL); //-1 idi
include"bootstrap.php";
use\Espo\Controllers;
use\PDO;
use\Espo\Core\Utils\Config;
use\Espo\Core\ORM\EntityManager;
$entname = $_GET['ent'];
$entid = $_GET['enid'];
//$app = new \Espo\Core\Application();
//var_dump($app);
$rec = new\Espo\Services\Record();
//var_dump($rec);
$HOS = $rec->getEntityManager()->getEntity($entname,$entid);
var_dump($HOS);
//// ***** I get Following ****
Fatal error: Call to protected method Espo\Core\Services\Base::getEntityManager() .....
Thanks in Advance....
Selcuk
I try to get one record in my custom php, located on root but I think I miss something.
Could you give me help on it; Regaridng ORM: How to manage entities in your code , I try follwing code but I couldn't manage to get it.
<?php <?php
// My TEST.PHP
ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(E_ALL); //-1 idi
include"bootstrap.php";
use\Espo\Controllers;
use\PDO;
use\Espo\Core\Utils\Config;
use\Espo\Core\ORM\EntityManager;
$entname = $_GET['ent'];
$entid = $_GET['enid'];
//$app = new \Espo\Core\Application();
//var_dump($app);
$rec = new\Espo\Services\Record();
//var_dump($rec);
$HOS = $rec->getEntityManager()->getEntity($entname,$entid);
var_dump($HOS);
//// ***** I get Following ****
Fatal error: Call to protected method Espo\Core\Services\Base::getEntityManager() .....
Thanks in Advance....
Selcuk
Comment