I have a model Chair and another one Table. Table has many Chair. Chair has one *OR NONE Table.
How can i deal in this situation without havinf to test if($chair_b->getTable()):
$chaira = Chair::findFirstById(4330); echo $chaira->getTable()->getId(); /* Outputs int 660 */
$chairb = new Chair(); echo $chairb->getTable()->getId() /* This will output an error */