I have a class for each of those.
I'm wondering which is best for deleting a record:
Code: Select all
$homeOwner->deletePetByID( $petID );
or
$Pets->deleteByID( $petID, $ownerID );Same goes for employees and cars.
Moderator: General Moderators
Code: Select all
$homeOwner->deletePetByID( $petID );
or
$Pets->deleteByID( $petID, $ownerID );