You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
689 B
34 lines
689 B
<?php
|
|
|
|
namespace Entity\Repository;
|
|
use \db;
|
|
|
|
/**
|
|
*
|
|
* @license see /license.txt
|
|
* @author autogenerated
|
|
*/
|
|
class CourseRepository extends \EntityRepository
|
|
{
|
|
|
|
/**
|
|
* @return \Entity\Repository\CourseRepository
|
|
*/
|
|
public static function instance(){
|
|
static $result = false;
|
|
if($result === false){
|
|
$result = db::instance()->get_repository('\Entity\Course');
|
|
}
|
|
return $result;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param EntityManager $em The EntityManager to use.
|
|
* @param ClassMetadata $class The class descriptor.
|
|
*/
|
|
public function __construct($em, $class){
|
|
parent::__construct($em, $class);
|
|
}
|
|
|
|
} |