gregurco / jobeet-tutorial Goto Github PK
View Code? Open in Web Editor NEWπ Symfony 4.2 Jobeet Tutorial
Home Page: https://jobeet-tutorial.rtfd.io
License: MIT License
π Symfony 4.2 Jobeet Tutorial
Home Page: https://jobeet-tutorial.rtfd.io
License: MIT License
First, thanks so much for taking this on!
I'm not 100% sure about this, but on day 5:
the wildcard * which stands for ID in the given example
there is no * in the code above it
Hi!
Just one small tip, there is an issue on your tutorial in "The admin", Job section, delete action on controller.
Instead of adding @param Job $job
and adding Job $job
, in your parameters in your delete action, you added @param Category $category
and Category $category
there.
I tried to make it work as said in your tutorial (with Category $category
in controller) and it didn't. So, I replaced it with Job $job
. (As I noticed that most of actions in the JobController required Job $job
)
Can you replace this in your tutorial ? Thank you !
Hi!
I'm currently doing your tutorial, I'm on Day 7 (you need to add your missing comma on your tutorial right before $page on CategoryController.php on function show() ).
I have currently an issue, when I go to the main page ("/") it says that none of the methods like activeJobs() exists and have a public access in class App\Entity\Category.
Do you have a fix for this ? Thank you!
I look almost every day onto the Jobeet page for month now.
I am wondering if the rest of the tutorials will be uploaded.
Best regards
Michael
In the day 6, with SF 4, we could extend ServiceEntityRepository for the repositories as per the symfony doc
It allows you to use autowiring and thus less boiler plate.
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Common\Persistence\ManagerRegistry;
class CategoryRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, Category::class);
}
...
}
and then in the JobController
use App\Repository\CategoryRepository;
...
public function list(CategoryRepository $categoryRepository) : Response
{
$categories = $categoryRepository->findWithActiveJobs();
return $this->render('job/list.html.twig', [
'categories' => $categories,
]);
}
Anyway it also works with EntityRepository.
Thanks for the great Job.
Close to the end of the paragraph there is this text.
We added page in the URL path and defined default value, in case when page is not defined in the URL (ex: /category/design). Variable $path is added in arguments of the method. It will be injected automatically by name in path. Also we need parameter max_jobs_on_category and getParameter methods to access it. Thatβs why this controller extends now Symfony\Bundle\FrameworkBundle\Controller\Controller but not Symfony\Bundle\FrameworkBundle\Controller\AbstractController.
Shouldn't it be the $page variable?
Hi,
i am at the point (Day 3), where the following command is used.
composer require doctrine/doctrine-migrations-bundle
but i get this error. Any advice?
Using version ^2.0 for doctrine/doctrine-migrations-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- symfony/orm-pack v1.0.5 requires doctrine/doctrine-migrations-bundle ^1.3 -> satisfiable by doctrine/doctrine-migrations-bundle[1.3.x-dev, v1.3.0, v1.3.1, v1.3.2] but these conflict with your requirements or minimum-stability.
- symfony/orm-pack v1.0.5 requires doctrine/doctrine-migrations-bundle ^1.3 -> satisfiable by doctrine/doctrine-migrations-bundle[1.3.x-dev, v1.3.0, v1.3.1, v1.3.2] but these conflict with your requirements or minimum-stability.
- symfony/orm-pack v1.0.5 requires doctrine/doctrine-migrations-bundle ^1.3 -> satisfiable by doctrine/doctrine-migrations-bundle[1.3.x-dev, v1.3.0, v1.3.1, v1.3.2] but these conflict with your requirements or minimum-stability.
- Installation request for symfony/orm-pack (locked at v1.0.5, required as *) -> satisfiable by symfony/orm-pack[v1.0.5].
Installation failed, reverting ./composer.json to its original content.
and the next command is also not working
bin/console doctrine:migration:diff
error
In OrmSchemaProvider.php line 40:
No mapping information to process
In Day 3 when creating CategoryFixtures and JobFixtures classes it should be:
use Doctrine\Persistence\ObjectManager;
instead of:
use Doctrine\Common\Persistence\ObjectManager;
using Symfony 4.4.35
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.