first commit
This commit is contained in:
33
plugins/stPocztaPolskaPlugin/lib/model/PocztaPolskaBufor.php
Normal file
33
plugins/stPocztaPolskaPlugin/lib/model/PocztaPolskaBufor.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Subclass for representing a row from the 'st_poczta_polska_bufor' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* @package plugins.stPocztaPolskaPlugin.lib.model
|
||||
*/
|
||||
class PocztaPolskaBufor extends BasePocztaPolskaBufor
|
||||
{
|
||||
protected $countPaczka = null;
|
||||
|
||||
public function getCountPaczka()
|
||||
{
|
||||
if (null === $this->countPaczka)
|
||||
{
|
||||
$this->countPaczka = PocztaPolskaBuforPeer::doCountPaczka($this->getBuforId());
|
||||
}
|
||||
|
||||
return $this->countPaczka;
|
||||
}
|
||||
|
||||
public function delete($con = null)
|
||||
{
|
||||
foreach (PocztaPolskaPaczkaPeer::doSelectByBuforId($this->getBuforId()) as $paczka)
|
||||
{
|
||||
$paczka->delete($con);
|
||||
}
|
||||
|
||||
return parent::delete($con);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user