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()):
$chair_a = Chair::findFirstById(4330); echo $chair_a->getTable()->getId(); / Outputs int 660 /
$chair_b = new Chair(); echo $chair_b->getTable()->getId() / This will output an error /