$host = 'localhost';
$port = 3306;
$database = 'mydatabasename';
$username = 'myusername';
$password = 'mypassword';
$dsn = "mysql:host=$host;port=$port;dbname=$database";
$db = new xPDO($dsn, $username, $password);
echo $o=($db->connect()) ? 'Connected' : 'Not Connected';
$db->addPackage('Inventardatenbank','/core/components/Inventardatenbank/model/','');
$cd = $db->getObject('CDs', 2);
print('Testausgabe' . $cd); //This prints "ConnectedTestausgabe" plus nothing plus "Test"
print('Testausgabe' . $cd->get('Besitzer')); //This should print "Testausgabe" plus a value, but output stops after 'Connected'
print('Test');This question has been answered by opengeek. See the first response.
print('Testausgabe' . $cd->toArray());