First of all, thank you for helping me.
I'm using propel. It is already present in the model function TVolatiliSorvoloSuolos(), but are instead called functions TVolatiliSorvoloSuolos0(), TVolatiliSorvoloSuolos1(), TVolatiliSorvoloSuolos2(), etc., where the number at the end of the function corresponds to the value of the prototype name. attached the model and the form.
thanks
Paolo
/birdstrikeapp2a/src/Birdstrike/AppBundle/Model/om/TSchedaMonitoraggio.php
public function getTVolatiliSorvoloSuolos($criteria = null, PropelPDO $con = null)
{
$partial = $this->collTVolatiliSorvoloSuolosPartial && !$this->isNew();
if (null === $this->collTVolatiliSorvoloSuolos || null !== $criteria || $partial) {
if ($this->isNew() && null === $this->collTVolatiliSorvoloSuolos) {
// return empty collection
$this->initTVolatiliSorvoloSuolos();
} else {
$collTVolatiliSorvoloSuolos = TVolatiliSorvoloSuoloQuery::create(null, $criteria)
->filterByTSchedaMonitoraggio($this)
->find($con);
if (null !== $criteria) {
if (false !== $this->collTVolatiliSorvoloSuolosPartial && count($collTVolatiliSorvoloSuolos)) {
$this->initTVolatiliSorvoloSuolos(false);
foreach ($collTVolatiliSorvoloSuolos as $obj) {
if (false == $this->collTVolatiliSorvoloSuolos->contains($obj)) {
$this->collTVolatiliSorvoloSuolos->append($obj);
}
}
$this->collTVolatiliSorvoloSuolosPartial = true;
}
$collTVolatiliSorvoloSuolos->getInternalIterator()->rewind();
return $collTVolatiliSorvoloSuolos;
}
if ($partial && $this->collTVolatiliSorvoloSuolos) {
foreach ($this->collTVolatiliSorvoloSuolos as $obj) {
if ($obj->isNew()) {
$collTVolatiliSorvoloSuolos[] = $obj;
}
}
}
$this->collTVolatiliSorvoloSuolos = $collTVolatiliSorvoloSuolos;
$this->collTVolatiliSorvoloSuolosPartial = false;
}
}
return $this->collTVolatiliSorvoloSuolos;
}