Hey Mattia, You can generate such docs via PHPDocumentor: we used to host them, but since they were constantly out of sync and largely unused, they have been dropped.
Most people work with IDEs such as PHPStorm, VSCode or Netbeans, which allow for quick type introspection, and which rely on the comments that you mentioned in order to infer proper types. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On Mon, May 18, 2020 at 11:33 AM Mattia Basaglia <[email protected]> wrote: > I was looking at the documentation website, it lists a bunch of examples, > tutorials, and other topics. > But I haven't been able to find proper reference documentation on like a > list of methods for a class, function parameters, return types and the like. > > For example, I was searching to see what `findOneBy` returns > (specifically if it returns null or throws something if nothing is found). > Searching on the documentation website it gives these two results: > * > https://www.doctrine-project.org/projects/doctrine-orm/en/2.7/tutorials/getting-started.html#entity-repositories > * > https://www.doctrine-project.org/projects/doctrine-orm/en/2.7/reference/working-with-objects.html#by-simple-conditions > > Those two results kind of explain how the function works but not in the > way I'm looking for. > > So I dug up the code and found some helpful comments in > ObjectRepository.php. > Those comments look formatted in a way that can be used to generate the > sort of documentation I'm looking for. > I was wondering if it's accessible online somewhere, because I haven't > been able to find it. > > -- > You received this message because you are subscribed to the Google Groups > "doctrine-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/doctrine-user/b60d5b0c-58bf-4fee-b46d-8fa25000c4f9%40googlegroups.com > <https://groups.google.com/d/msgid/doctrine-user/b60d5b0c-58bf-4fee-b46d-8fa25000c4f9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/doctrine-user/CADyq6s%2Bh1eaJTGJbG4shWvLpRV-yXW48k%3DKPYKoQzTycOqDE5A%40mail.gmail.com.
