mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
39 lines
741 B
PHP
39 lines
741 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Phraseanet
|
|
*
|
|
* (c) 2005-2010 Alchemy
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Repositories;
|
|
|
|
use Doctrine\ORM\EntityRepository;
|
|
|
|
/**
|
|
*
|
|
* @package
|
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
|
* @link www.phraseanet.com
|
|
*/
|
|
class StoryWorkzoneRepository extends EntityRepository
|
|
{
|
|
|
|
/**
|
|
* Returns all StoryWorkZone currently attached to a user
|
|
*
|
|
* @param \User_Adapter $user
|
|
* @return \Doctrine\Common\Collections\ArrayCollection
|
|
*/
|
|
public function findByUser(\User_Adapter $user)
|
|
{
|
|
|
|
return $this->findBy(array('usr_id'=>$user->get_id()));
|
|
}
|
|
|
|
}
|
|
|