Record::getId - jcobban/Genealogy GitHub Wiki
$record->getId()
Up: class Record
This method returns the value of the primary key of the record within its table, if it has one. This method returns null if the table in question does not have a primary key, or if the record does not have an assigned primary key value yet, for example the table uses a server-managed primary key and the record has not yet been inserted into the database and consequently the unique identifier has not yet been assigned by the SQL server. The reason for returning null is added to the global $warn variable so it will be displayed by global function showTrace().