protected function resolveAttributes() { return $this->Appointment ? $this->Appointment->getMappingsArray() : null; }