Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * System_aluno_turma Active Record
- * @author <Jonathas Alves Santos>
- */
- class SystemAlunoParcela extends TRecord
- {
- const TABLENAME = 'system_aluno_parcela';
- const PRIMARYKEY= 'id';
- const IDPOLICY = 'max'; // {max, serial}
- private $system_aluno;
- /**
- * Returns the Item from its numero_documento
- */
- public static function newFromNumeroDocumento($numero_documento)
- {
- $rep = new TRepository('SystemAlunoParcela');
- $criteria = new TCriteria;
- $criteria->add(new TFilter('numero_documento', '=', $numero_documento));
- $objects = $rep->load($criteria);
- if ($objects)
- {
- $detail = $objects[0];
- return $detail;
- }
- }
- }
Add Comment
Please, Sign In to add comment