One of these PHPDoc comments will do the job for you (if you do not mind little bit of manual type hinting, of course):
/** @var MyClass[] $ladies */
$ladies = ValentineQuery::create()->find();
/** @var MyClass $maybe */
foreach ($ladies as $maybe)
{
/** @var MyClass $maybe */
echo $maybe->getSeconddate(); //<-- DOES NOT AUTO HINT AT GETTER METHODS!!! arg
}
For more automated stuff (so that you do not have to place such type hints everywhere), check PHPDocs for those methods -- maybe it will be possible to place them there (e.g. @return MyClass[]
) .. or via @method
tag in the class PHPDoc (it all depends on how it's implemented -- cannot say for sure as I'm not good with Propel at all).