extend orm.yml-entity with another orm.yml-entity - orm

I got multiply .orm.yml-entites which actually need to be extended by another one. As it is described here:
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/inheritance-mapping.html#mapped-superclasses
But I do not found a solution there for orm.yml-files, this is only for annotations.
How can i achieve this?

Related

Looking for an alternative way of findFragmentById with binding?

Is there any way to get a reference to a Fragment without using findFragmentById or findFragmentByTag ??
There is very little information in your question. I assume you use the FragmentManager? There is a getFragments method, you could find your fragment using that. https://developer.android.com/reference/kotlin/androidx/fragment/app/FragmentManager#getFragments()
You could also catch the fragment when it attaches, I believe there is an onAttach callback.
If these solutions are not what you are looking for, please provide more information

JUST_IN_TIME cache type Probabilistic selection

In the documentation it is clearly stated that cacheType JUST_IN_TIME does not work with Probabilistic selection.Since most of my moves are generated "just in time" is there some way that i can use these two together? If there isn't, what are some other options to use?
Well i found what i was looking for with the fixedProbabilityWeight which let's me manually configure from start what moves will be used more than others. On top of that i found the SelectionProbabilityWeightFactory<NurseRoster, IterableSelector> interface that let's me modify the probabilityWeight while solving.

IntelliJ Idea: How to create a custom inspection rule

I'm looking for the way to create inspection to warn about large non-javadoc comments in code. I didn't found any suitable common inspection to do this. It looks like I should create a custom inspection rule. Does anybody know how to do it?
As far as I know, there are two ways to create your own code inspection in IntelliJ IDEA:
(simple but limited way) Creating custom inspection based on "search templates".
(more complex and more powerfull way) Developing an IDEA-plugin (here are the guidlines) using your own InspectionToolProvider implementation as "application-component". Also you may use sources of my inspections-plugin as the starting point.
See http://confluence.jetbrains.com/display/IDEADEV/Developing+Custom+Language+Plugins+for+IntelliJ+IDEA#DevelopingCustomLanguagePluginsforIntelliJIDEA-CodeInspectionsandIntentions. You can look at Open API and Plugin Development forum for assistance.

A Sequence at a forum register area

I want to register to a forum but stuck at a question to register.
Type the secuence
GDB123_YTU
I tried 1,2,3,4,5,6,7,8,9,10,21,321
What could it be?
Is this just a really badly implemented Captcha?
I read this as they want you to type "GDB123_YTU" in.?
Maybe you have to add 4? So "GDB1234YTU". Is this really a valid question for SO?

Is it possible to access custom properties from QT Designer after converting to python?

I am new to PyQt and Qt Designer and I'm trying to create an easy method for relating qWidgets with the tables and columns in an SQLite database. My idea was to tag each qWidget in designer with two custom properties, one with the table name and one with the column name. Later, I would use the info provided by designer to build my own class which creates a relationship between the qwidets and SQLite database.
Adding the custom properties in Designer seems to work fine however, the code for these custom properties do not get generated when converting the xml of designer into python (using UIC). Has anyone done this successfully? Perhaps there is a better way to do this?
Thanks,
Eric
If you added a property in Designer called "myproperty", fetch it with...
mywidget.property("myproperty")
This works fine in pyqt 4.8.3, perhaps it did not work in previous versions.
Check out this article Eric. Particularly look at the section titled "Producing a Plugin." River Bank Computing has another great PyQt reference.
EDIT:
I've been doing some more reading and I can't find a way to have this done automatically for you. If you are ok with with adding dynamic properties at run-time instead of design time you could accomplish the same end result. Here is an explanation of the setProperty() method in QObject, from which QWidget inherits.
If that doesn't work for you then it seems you might be better off going with a less generic approach. Instead of using a generic QWidget, you might be able to use a custom class derived from QSqlTableModel to keep track of your connection info. Another way would be to just use a QTableView and do the queries yourself to populate the data. Here and here are articles on databases in Qt. You might some inspiration for a new design from one of them.
I have not had great luck with using the Designer tool -- usually I end up doing a few rough layout, using pyuic and then editing and adding other stuff by hand.
It sounds like you could easily accomplish your task by creating your own custom class that inherits from QWidget and has the additional properties that you described. With my experiences trying to use custom widgets in the designer, I think the 'easier' way is to just write the class yourself and then set the layout by hand.
I know this doesn't exactly answer your question, but maybe you will try some of my suggestions.