/** * @VirtualProperty() * @SerializedName("nombre_detallado") * @Groups({"list"}) */ public function getDetallado() { return "{$this->cargo->getNombre()} - {$this->persona->getNombreCompleto()}"; }