/** * @param Gastofacturacion $gastofacturacion The gastofacturacion object to add. */ protected function doAddGastofacturacion($gastofacturacion) { $this->collGastofacturacions[] = $gastofacturacion; $gastofacturacion->setCategoriagasto($this); }