Method not found in the class

Hello!

I have a class.
The public methods of the class to be called in the controller.
For example:


------------ my controller -------------

               /** Pdf der Rechnung Übernachtung  */
                $model_pdfUebernachtungKunde = new Front_Model_RechnungPdfUebernachtung($pimple); // Pdf der Rechnung Übernachtungen

                $namePdfUebernachtungRechnung = $model_pdfUebernachtungKunde
                    ->setDaten($model_kundendatenUndBuchungsdaten) // Übernahme Daten
                    ->setSchriften($fontTexte) // Vorgabe Schriften
                    ->erstellenPdfSpalten()  // Spaltenmodell Pdf
                    ->setBuchungsnummer() // Ermitteln Buchungsnummer
                    ->erstellenGrunddokument() // anlegen leeres Dokument
                    ->erstellenRechnungsblock() // Erstellen Rechnungsblock
                    ->erstellenInformationen() // allgemeine Informationen
                    ->speichernPdf(); // abspeichern Pdf

------------- end controller -----------------

The method
-> erstellenPdfSpalten ()
can not be called with 'Ctrl' + 'mouseover'.

The method -> erstellenPdfSpalten () is marked and has the message
' Method not found in class erstellenPdfSpalten Front_Model_BestellungPdfProgramme '.


But that's the wrong class.

Who can help?
Is there a repair program for the index?

Sincerely yours

Stephan

6 comments

Hi there,

Is there a repair program for the index?

File | Invalidate Caches... --  that is the only "repair" functionality available.

If it will not help -- then most likely error is somewhere else (e.g. in PHPDoc for previous class in a chain; you may have 2 classes with the same name which most likely will confuse PhpStorm; or some bug in PhpStorm itself).

0

Hello!

Found a mistake??

The reference points to files that no longer exist.
Recently the name of the file is the old file name.
I changed the name of the file with the refactor tool.

Can I trigger a re-indexing of the files?

Greetings Stephan

0

Can I trigger a re-indexing of the files?

File | Invalidate Caches...

This will do reindexing of ALL files in the project

0

File | Invalidate Caches... --  that is the only "repair" functionality available.

don't help

Stephan

0
don't help

Cannot advise anything more then -- I need to have some reproducible case to see what may be wrong there.

If you wish -- file a ticket to the Issue Tracker where you can safely provide such code (only devs will be able to see it).

0

Problem solved.

The error was a false indication of the class in php doc block.
Example file Model_RechnungPdfUebernachtung

--------------- False statement ------------

/ **
      * Create the columns in the PDF document
      *
      * Sets the fixed columns.
      * Column model has 6 columns
      *
      * @ Return Front_Model_BestellungPdfUebernachtung
      * /

---------- -------------- Correctly listed
/ **
      * Create the columns in the PDF document
      *
      * Sets the fixed columns.
      * Column model has 6 columns
      *
      * @ Return Model_RechnungPdfUebernachtung
      * /

----------------------------

Sincerely yours

StephanNeu!Melden Sie s

0

Please sign in to leave a comment.