run migrations always in kimai:install command (#944)
This commit is contained in:
@@ -81,6 +81,18 @@ class ActivityRepository extends EntityRepository
|
||||
return $stats;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 1.1
|
||||
*/
|
||||
public function builderForEntityType($activity, $project)
|
||||
{
|
||||
$query = new ActivityFormTypeQuery();
|
||||
$query->setActivity($activity);
|
||||
$query->setProject($project);
|
||||
|
||||
return $this->getQueryBuilderForFormType($query);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a query builder that is used for ActivityType and your own 'query_builder' option.
|
||||
*
|
||||
|
||||
@@ -107,6 +107,17 @@ class CustomerRepository extends EntityRepository
|
||||
return $stats;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 1.1
|
||||
*/
|
||||
public function builderForEntityType($customer)
|
||||
{
|
||||
$query = new CustomerFormTypeQuery();
|
||||
$query->setCustomer($customer);
|
||||
|
||||
return $this->getQueryBuilderForFormType($query);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a query builder that is used for CustomerType and your own 'query_builder' option.
|
||||
*
|
||||
|
||||
@@ -91,6 +91,18 @@ class ProjectRepository extends EntityRepository
|
||||
return $stats;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 1.1
|
||||
*/
|
||||
public function builderForEntityType($project, $customer)
|
||||
{
|
||||
$query = new ProjectFormTypeQuery();
|
||||
$query->setProject($project);
|
||||
$query->setCustomer($customer);
|
||||
|
||||
return $this->getQueryBuilderForFormType($query);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a query builder that is used for ProjectType and your own 'query_builder' option.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user