I'm using Laravel 5.3, in PhpStorm there is error under the method 'create' and many other methods. I tried all the ide_helpers but nothing resolved it
is there anyway to resolve this and the autocomplete?
I found the answer the problem was with the use lines :
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
first line should be replaced with:
use Schema;
Related
I want to override function doGenerate() in this class, but it's not possible to xclass this class.
Alternatively, I tried Helmut Hummel's solution in typo3-config-handling, where he uses a class_alias, like this:
class_alias(\Helhum\TYPO3\ConfigHandling\Xclass\ConfigurationManager::class, \TYPO3\CMS\Core\Configuration\ConfigurationManager::class);
but no luck either:
'PHP Warning: Cannot declare class TYPO3\CMS\Core\Routing\UrlGenerator, because the name is already in use in /home/ahkalbert/vendor/netklaar/typo3-routing/res/php/autoload-include.php on line 2'
Any suggestions how to solve this?
Deprecated: You are retrieving the service locator from within the class Admin\Controller\IndexController. Please be aware that ServiceLocatorAwareInterface is deprecated and will be removed in version 3.0, along with the ServiceLocatorAwareInitializer. You will need to update your class to accept all dependencies at creation, either via constructor arguments or setters, and use a factory to perform the injections. in /var/www/airtel-emt-credit-limit/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php on line 258
Supress the warnings using error_reporting().
For example first thing in your application as in your index.php file:
error_reporting(E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
All errors will be shown except for deprecated or user_deprecated.
We are trying to use the enterprise version of ag-grid, but we have this error message. Thanks in advance.
ERROR in
node_modules/ag-grid-enterprise/dist/lib/toolPanel/toolPanelComp.d.ts(4,22):
error TS2420: Class 'ToolPanelComp' incorrectly implements interface
'IToolPanel'. Property 'init' is missing in type 'ToolPanelComp'.
I believe the error is resulting when trying to migrate to their latest v18.
Your problem might be solved with the help of their documentation. Please follow the below link and look for breaking changes:
https://www.ag-grid.com/ag-grid-changelog/?fixVersion=18.0.0
I guess your problem can be related to Ag-1800 specifically.
Hope it helps!
Does any one know why am getting this error ?
Can't locate object method "find_md5" via package "DBM::Deep::Engine::Sector::Scalar" at /u/xref/xref.10/bin/../lib/perl5/site_perl/5.8.8/DBM/Deep/Engine.pm line 1599
Please let me know how to get Rid of this.
Because $o->find_md5 was called where $o is the string DBM::Deep::Engine::Sector::Scalar or an object of class DBM::Deep::Engine::Sector::Scalar, yet that class doesn't have a method named find_md5.
(DBM::Deep::Engine::Sector::Scalar doesn't even seem to exist in newer version of the DBM::Deep distribution, so upgrading DBM::Deep would be a good start.)
In MVC 2 I am working on something and have ran into a snag. I got my repository put instead of putting in the same class the interface is I have it same project as the EDMX file.
Initializing StructureMap is what's killing me at this point. Here's where I'm initizing StructureMap (in Global.asax.cs.)
ObjectFactory.Initialize(x =>
{
x.ForRequestedType<IUnitOfWorkFactory>()
.TheDefaultIsConcreteType<EFUnitOfWorkFactory>()
.CacheBy(InstanceScope.HttpContext);
x.ForRequestedType(typeof(IRepository<>))
.CacheBy(InstanceScope.HttpContext)
.TheDefaultIsConcreteType(typeof(GenericRepository<>));
});
The Namespace for this project is GpdsCreationTaxidermy.Data (which is the same Namespace as my GenericRepository.cs). I would post the code for this file but I dont believe that is the problem here. In my Global.asax I import the proper Namespace
using GodsCreationTaxidermy.Data;
The error I'm getting is:
Error 3 The type or namespace name
'GenericRepository' could not be found
(are you missing a using directive or
an assembly reference?)
Also attached is an image showing this particular projects layout
Can someone help with this issue, or what I'm doing wrong here
EDIT I have even tried adding GodsCreationTaxidermy.Data to the file name and still no luck.
Thanks for sending the files :-)
It looks like the definition of GodsCreationTaxidermy.Data has changed.
This is what I did to fix the problem:
Remove these references from GodsCreationTaxidermy.Data.Repository Class Library:
GodsCreationTaxidermy.Data
GodsCreationTaxidermy.Data.Repository
Remove these references from GodsCreationTaxidermy.Data Class Library:
GodsCreationTaxidermy
GodsCreationTaxidermy.Data
Remove the reference to GodsCreationTaxidermy.Data in the GodsCreationTaxidermy MVC project and re-add the reference, choosing GodsCreationTaxidermy.Data from the Project tab
Hopefully that'll get the GenericRepository working :-)
I did notice that the following line no longer works though:
EFUnitOfWorkFactory.SetObjectContext(() => new GodsCreationTaxidermyEntities());
GodsCreationTaxidermyEntities doesn't seem to exist in GodsCreationTaxidermy.Data any more. Does that cause you an issue?
Try this:
.TheDefaultIsConcreteType(typeof(GodsCreationTaxidermy.Data.GenericRepository<>));
Possibly remove <> after GenericRepository. Has GodsCreationTaxidermy.Data been added to the MVC site as a reference?