Revert "calendar bug fix 2" since with incorrect author
[openemr.git] / repositories / ChartTrackerRepository.php
blob49fc80a0e29eb0a4e1d378e6f037af045a56b72a
1 <?php
2 /**
3 * Chart tracker repository.
5 * Copyright (C) 2017 Victor Kofia <victor.kofia@gmail.com>
7 * LICENSE: This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
18 * @package OpenEMR
19 * @author Victor Kofia <victor.kofia@gmail.com>
20 * @link http://www.open-emr.org
23 namespace repositories;
25 use entities\ChartTracker;
26 use Doctrine\ORM\EntityRepository;
28 class ChartTrackerRepository extends EntityRepository {
30 /**
31 * Add chart tracker table entry.
33 * @param $tracker chart tracker information.
34 * @return the pid.
36 public function save(\entities\ChartTracker $chartTracker) {
37 $this->_em->persist($chartTracker);
38 $this->_em->flush();
39 return $chartTracker->getPid();