I have to get data from one company which uses SAP for product management and so on. I should just retrieve data once in a day and refresh my local mysql db. I am php developer, so I know about SAP …
Laravel – Mass Assignment Exception error
I am trying to save multiple rows to a table, however, I am presented with a Mass Assignment Error. The error is: Illuminate Database Eloquent MassAssignmentException criteria_id $criteria->…
Encryption password FOSUserBundle
I have a symfony project using FOSUSerBundle to manage users , Now I need to access to Database via a Simple Rest Webservice , The encryption in the registration is : Sha512 , How can i get the same …
PHP scandir filenames with Turkish characters
I am listing documents with PHP scandir. I have problem with some characters like ğ, ı, ş… So this is my code; $directory = “document”; $scanned_directory = array_diff(scandir($directory, 1), array(…
Symfony2: Warning: spl_object_hash() expects parameter 1 to be object, integer given
I have a many to one relationship between the entities Project and Course because each course can have many projects so many projects could be related to the same course. These are my entities: and The error appears when i try to insert a new project for my course, this is my form builder: I try to insert the…
PHPDocumentor – what’s wrong with my DocBlock?
I’m putting in some comments in some legacy code, and I’ve run across a small issue with PHPDocumentor. Here’s an example: /** * Constructs the Widget object * * Basic constructor for the widget …
Smarty cdn output filter for images
Output filter for smarty which replaces image URL inside smarty templates with your cdn url e.g. an image like: <img src="http://cdn.yoursite….
Use one Laravel migrations table per database
I work in a project that uses multiple databases. It seems like Laravel only uses the migrations-table in the database that is set as default. I would like one migrations table per database that logs the migrations that have been done to that specific database. Is this possible? I have defined the databases i…
How to compare Laravel’s hash password using a custom login form?
Can you help me with this? I am building my own login form using Laravel. But I have a problem because I stored my password using Hash method and in my login form I used hash method again to compare. …
How to see if a post exists based on a meta value
Is there any way to see if a post exists by a meta value? For instance, lets say I want to see if another post has a unique meta value of “pictureID”, and if so do something else. Is there a way I …