511 search results

…suppose that we use the excellent twig part. I use {%trans%} in twig, how to generate easily the translation file in fr_FR and en_GB for example and where is it created? I was force to google that (or Bing or yahoo...) to finaly…
No one seems to have pointed out that despite this page saying "Click the Download button on this page to get the starting point of the project," there is in fact no "Download" button anywhere on the page.
Jim Fisher
Jim Fisher
Read Full Comment
…Yes" to, especially when learning something new (no is actually the default, but it's subtle). The tricky thing is that Symfony 3 isn't anywhere near from being released (years away), so it's a silly question to ask. In fact, I've just…
weaverryan
weaverryan
Read Full Comment
…by using gulpfile at root level; browsersync for twig sass and javascript; i have my bower assets saved in the "web" directory in a sub-directory called "components"; any best practices regarding front-end assets and where they should live in production vs. dev environments?
Joshua Linog
Joshua Linog
Read Full Comment
…to cast the variables into an array before I could use it. The reason for using `andWhere()` instead of `where()` was very helpful otherwise would have spent some more time reading the doctrine docs. I noticed that access to the properties of the classes that…
sridharpandu
sridharpandu
Read Full Comment
…kinda complicated. I want to make sure that it's not outdated in Symfony 5? Is there a better method now? 2. Why don't you just make a query in the Repository with andWhere(is_deleted = 0); To get the non deleted comments?
…special purposes its ok. If i am right select - where is allready done. A custom Filter is AndWhere from queryBuilder. That makes sense we filter a resource and not build a complete query ... https://api-platform.com/docs/core/filters/#creating-custom-doctrine-orm-filters
Benjamin K.
Benjamin K.
Read Full Comment
…us') ->andWhere(us.user_id = 1) ->getQuery() ->getResult(); } ``` Notice how I change `select` to `addSelect` so it will select everything from "s" plus the "us.url" field. Also notice how I added the `WHERE` clause by using `andWhere()` method I hope it helps. Cheers!
MolloKhan
MolloKhan
Read Full Comment
…find a solutions for all my queries. There are even more than I described above. ;-) But now, uff, they are working fine! One thing I noticed is the order of the "andWhere"- queries is important and sometimes not that logical for me. Best regards! Michael
Michael-K
Michael-K
Read Full Comment
…probably need to create a custom query builder, innerJoin over to this Url entity, and add the andWhere on its key property. Here is some info about those types of queries: https://symfonycasts.com/screencast/doctrine-queries/joins Let me know if that helps! Cheers…
weaverryan
weaverryan
Read Full Comment
…The reason for this maybe, it is expecting another clause before it if i put `andWhere()` and hence it doesnt work as there isnt any other clause. Besides I had to wrap the query builder in a try catch block which you clearly dont do…
Junaid Farooq
Junaid Farooq
Read Full Comment
…to wrap it in a try catch block but now that i put it there, i dont need a try catch block anymore. I can also use andWhere() now. Great. Think the error was somehow related to missing try-catch block or PHPDoc Comment or…
Junaid Farooq
Junaid Farooq
Read Full Comment
…The only thing that works for me is to turn off turbo for the page. I haven't found any sensible instructions on how to do it anywhere. So I'm asking here if anyone can help. It's important that this script `https://www…
…set some flag (i.e. property on your class) that indicates that you're in this "success" situation. B) In your template, anywhere inside your root component element, add something like this: ```twig {% if isSuccessful %} {% endif %} ``` That should do it! When this `turbo-stream` pops…
weaverryan
weaverryan
Read Full Comment
…at all that ugly HTML! Like many things, I grew to love it. Now those classes look descriptive :). I can quickly see why something has a border and where that's coming from. But yea, totally subjective. I also like that, when needing custom styling…
weaverryan
weaverryan
Read Full Comment
…directory structure anymore. For example, a command is not a command because it lives in the `src/Controller/` directory / `App\Controller\` namespace. You can put a controller anywhere, because it's the autowiring + autoregistration that tells Symfony this is a command. So, from a namespacing…
weaverryan
weaverryan
Read Full Comment
…webhooks. Also, overriding any of the form templates and surrounding it in a turbo frame lets you have a modal anywhere that can load the crud forms for any entity. I've also gotten live components to work with custom actions. This seriously sounds epic…
weaverryan
weaverryan
Read Full Comment
…and turbo streams from webhooks. Also, overriding any of the form templates and surrounding it in a turbo frame lets you have a modal anywhere that can load the crud forms for any entity. I've also gotten live components to work with custom actions.
…Platform, the string `실례` DOES show up in 1 place (though `словник` does not show up anywhere): in a `swagger-ui-bundle.js` file shipped by API Platform. See https://github.com/api-platform/core/issues/5900#issuecomment-1773752880 - that looks like the same thing…
weaverryan
weaverryan
Read Full Comment
…thinks that `Post` is an entity that it needs to query for. What does the top of your class (basically everything from the `class ` keyword and above to the top of the file) look like? Is the word `Post` used anywhere else in your class?
weaverryan
weaverryan
Read Full Comment